Dropped connections on our Nginx

Maxim Dounin mdounin at mdounin.ru
Wed Jun 20 12:55:39 UTC 2012


On Wed, Jun 20, 2012 at 07:57:13PM +0800, Mauro Stettler wrote:

> In the meantime I found that there is a log entry when this problem happens:
> 2012/06/20 13:14:33 [alert] 4340#0: *23199 http request count is zero
> while sending to client, client: <ip>, server: <server>, request:
> "POST /userProfile/updateVisitCountAndVisitHistory/user_id/<id>/gender/w/nickname/geilpopperrin/membership/normal/hash/bb7e2305b293458dc8e9043486a6a455
> HTTP/1.1", upstream: "fastcgi://", host: "<host>",
> referrer: "<referrer>"
> If I understand that error right, it means that when Nginx tried to
> build the reply to the client, it somehow lost the context to which
> request this is associated to? As far as I see the error is outputted
> from this part of the source:
> src/http/ngx_http_request.c:
> 2983     if (r->count == 0) {
> 2984         ngx_log_error(NGX_LOG_ALERT, c->log, 0, "http request
> count is zero");
> 2985     }
> What would be a possible reason why the r->count is 0?

The message means that nginx detected request reference count 
being incorrect.  This in turn means there is a bug somewhere.

> Do I have to assume that there is a bug in one of the 3th party 
> modules which are used?

Likely yes.

Maxim Dounin

More information about the nginx mailing list