spray.can.server {
request-timeout = 124s
idle-timeout = 125s
request-chunk-aggregation-limit = 0
parsing = ${spray.can.parsing}
}
spray.can.parsing {
max-content-length = 8g
max-chunk-size =100m
# incoming-auto-chunking-threshold-size = 20
}
spray.can.host-connector {
max-connections = 8
}
If I uncomment the "incoming-auto-chunking-threshold-size = 20" line, the file gets uploaded, but it takes a huge amount of time to upload.
I noticed that even though I had set the chunk size to 10MB in the code, the actual chunk size that is being used at runtime is much smaller - sometimes around 500 0r 1000 bytes. The size also varies for each chunk. I expect each chunk to be 10MB since I specify it in the code like this:
val parts = req.asPartStream(10485760)
Please note that the effective runtime chunk size becomes 10 MB when I comment the "incoming-auto-chunking-threshold-size = 20" line in the conf file.
Is there any other property that I need to change?
Regards,
James