client closed prematurely connection while sending to client, in nginx

后端 未结 6 1994
名媛妹妹
名媛妹妹 2021-01-31 16:51

I have 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, s         


        
6条回答
  •  孤城傲影
    2021-01-31 17:29

    I tackled this problem myself for long hours today and found a solution:
    Please note that this fix only affects you when using load balancer(s)

    Check your load balancer idle timeout. I had ELB idle timeout set to 60 seconds (default) and as the request was hanging, it closed the connection after given time. But as the ELB is before nginx, nginx is logging that the "client" (in this case ELB), is closing the connection.

    So if you are using ELB, go to:
    EC2 -> Load Balancers -> Select the correct one -> scroll down in description and change Idle Timeout if you are using other load balancers, check their configuration and timeouts.

    Also keep in mind that you still might be needing to change the proxy timeouts etc.

提交回复
热议问题