Fork me on GitHub

Does anyone have experience of exposing a binary file (about 70MB in size) for download in the router. I set up a route on my local machine like this

["/data/myfile.bin" (constantly (ring.util.response/file-response "./data/myfile.bin"))]
and it works BUT whenever i try to wget it also on my l*ocal machine* it downloads very slowly, 200K/s, I would expect it to download many MB/s. What am I doing incorrectly? Is it a jetty configuration problem?


I solved my problem, turns out debug logging for was drastically slowing everything down. Once I turned the log level to INFO instead of DEBUG the problem went away.