My server is sending me chunked encoded data and I am able to get the chunked response in my client. The problem I am facing is that some chunks are too big, ca 10 MB. I am getting an exception as I have set max chunk size to 2M.
Is there any way to break this bigger chunk into smaller ones?
Hmm. Not sure what version of Spray you're using but starting from version 1.1 there is
incoming-auto-chunking-threshold-size
setting (details here). Here is example of service that supports chunked upload.There are still number of limitations at the moment. You could read relevant discussion in open ticket.