reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
2020-10-13T14:17:33.119600Z

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?

2020-10-13T16:13:03.120Z

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.