English 中文(简体)
客户在寄给客户时过早地闭关,在 n子里
原标题:client closed prematurely connection while sending to client, in nginx
  • 时间:2011-01-26 12:58:56
  •  标签:
  • nginx

我错了原.错误:

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"

我每天在现场有500条对应法。 我如何确定这一点?

谢谢。

问题回答

proxy_ignore_client_abort on;。

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)

检查你的负荷平衡闲置时间。 我将ELB的闲置时间定在60秒(过失)上,而且由于请求被撤销,在一定时间之后关闭了联系。 但是,由于ELB处于原始状态,正出现“客户”(即ELB)正在关闭这一联系。

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.

还铭记你仍可能需要改变代理时间等。

I found that if you turn off the proxy buffer helps

http {
   proxy_buffering off;
...
}

Probably the buffers are too small or less. After changing the buffer sizes it works nice

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

我有同样的问题,对此进行了研究。 在我的案件中,这只发生在网上浏览器上。 如果你只装上单一资源,那么他们开放的连接比他们要求的要大得多。 在这种情况下,超额联系是平庸的,或者至少没有向它发送任何吉大港定居地。 这导致在原产地上出现上述错误。

Regarding #1 answer: Non of the proposed solutions help which is logical as this has nothing to do with proxying.

Regarding #2 answer: proxy_ignore_client_abort on; Does not help in my test.

Unfortunately, I ve found no other solution than using

差错

我也存在同样的问题,发现由于寄出时间,原产地关闭了联系。 我增加并固定了。

http
{
send_timeout 20;
...
}




相关问题
nginx behaved differently for different version

I have used docker image nginx:1.18.0-alpine previously and below is the conf. It works as expected app.localhost --> points to the block wit server_name app.* localhost --> points to the other ...

What s limiting my PHP resources?

I m having a problem getting more memory out of PHP. This is the error message: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 82 bytes) in ... Yet: I ve set ...

what user I should run my nginx or php-fpm processes

Ok. Im little bit confused about those permissions in linux so please people help me out. The trouble is that I dont want to run server as root, so I created another user with sudo privileges so he ...

Nginx 301 redirect inc. set cookie

what I m looking for is the ability for nginx to detect that a url has the query string variable cid. for example www.adomain.com/froggy?cid=12&as=false (query string can be solo or mixed with ...

Nginx raises 404 when using format => js

I upload images to my App using Ajax and an Iframe. In Development everything works like a charm. But in production Nginx suddenly raises a 404 error. When I look into the log, the request never hits ...

nginx errors readv() and recv() failed

I use nginx along with fastcgi. I see a lot of the following errors in the error logs readv() failed (104: Connection reset by peer) while reading upstream and recv() failed (104: Connection ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签