I am running Rainpows ThreadPool + nginx (unix socket)
On large file downloads, I get the following in the nginx error log (nothing in the application log):
readv() failed (104: Connection reset by peer) while reading upstream
The browser receives a response:
413 Request Entity Too Large
Why is this happening?
- "client_max_body_size 80M;" installed both at the http level and on the server (just in case) in nginx
- nginx communicates with rainbows through a unix socket (upstream socket + location @proxy_pass)
- I do not see anything in other magazines. I checked:
- rainbows magazine
- magazine magazine
- application log
- dmesg and / var / log / messages
- This happens when uploading a file ~> 1 MB in size
glebm source share