Client closes premature connection when sending to client, in nginx

I have an error in nginx error.log:

2010/12/05 17:11:49 [info] 7736#0: *1108 client closed prematurely connection while sending to client, 
client: 188.72.80.201, server:***.biz, request: "GET /forum/ HTTP/1.1", 
upstream:"http://***:3000/forum/", host: "***.biz"

I have 500 answers on the site each time. How can i fix this?

Thank.

+28
source share
7 answers

Installation [proxy_ignore_client_abort on;][1]may help you.

+16
source

I solved this problem myself for many hours today and found a solution:
Please note that this fix only affects you when using the load balancer

- . - ELB, 60 ( ), , , . ELB nginx, nginx , "" ( ELB) .

, ELB, : EC2 → → → , , .

, - - ..

+12

, ,

http {
   proxy_buffering off;
...
}

, .

proxy_buffering on;
proxy_buffer_size 8k;
proxy_buffers 2048 8k;
+7

, . Webkit (Chrome). , , . HTTP- . nginx.

№1: , , .

№2: proxy_ignore_client_abort; .

, ,

error_log off;

+2

, nginx - send_timeout. , .

http
{
send_timeout 20;
...
}
+1

fastcgi_ignore_client_abort on .

-3

error_log warn debug. .

-19

All Articles