Nginx and low-speed connections: request terminates after 253 seconds

Posted by meze on Server Fault See other posts from Server Fault or by meze
Published on 2012-09-05T20:47:12Z Indexed on 2012/09/05 21:39 UTC
Read the original article Hit count: 182

Filed under:

I'm trying to make nginx to handle static files. All is working fine except that when I throttle my connection speed to 8kbit/s, the loading process of a file just stops after 253-255 seconds (4.2 min according to chrome). No error in the log, the status code is 200 but the response is received partially. If I disable nginx and make apache to send the same file - it loads successfully after 10 minutes.

The config I use for debugging is:

client_header_buffer_size 16k;
large_client_header_buffers 4 8k;
client_max_body_size 50m;
client_body_buffer_size 16k;
client_header_timeout 20m;
client_body_timeout 20m;
send_timeout 20m;

Did i miss some configurations?

© Server Fault or respective owner

Related posts about nginx