Re: [akka-user] Akka-HTTP, Upload, Sending 2xx response before end of request was received

2016-05-12 Thread Qux
Thanks, works like a charm :) About the docs: I've never done this before. How can I contribute exactly, and wheres the best place for this in the docs? -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >>

Re: [akka-user] Akka-HTTP, Upload, Sending 2xx response before end of request was received

2016-05-12 Thread Konrad Malawski
It's exactly as the error message explains – you're doing an "early response", which not all HTTP Clients can survive. Akka's HTTP client would survive it, but blocking APIs often wouldn't. The thing is that you write the response `complete(OK)` before the incoming data has finished streaming.

[akka-user] Akka-HTTP, Upload, Sending 2xx response before end of request was received

2016-05-12 Thread Qux
Hi, I wanted to try a HTTP-Upload (like at the end of https://www.youtube.com/watch?v=DEQtNuhCW8g). You can see the Code at the end. When I try to Upload a big file (for example on linux: curl -T /dev/zero http://localhost:18080/upload > /dev/null ), I get following: [WARN] [05/12/2016