close request

Maxim Dounin mdounin at
Mon May 23 22:37:10 UTC 2022


On Mon, May 23, 2022 at 12:24:16PM -0700, Dk Jack wrote:

> Hi,
> What is the significance of this alert in ngx_http_close_request
>     if (r->count == 0) {
>         ngx_log_error(NGX_LOG_ALERT, c->log, 0, "http request count is
> zero");
>     }
> I am seeing this alert in my logs in some cases.

This alert means that request reference counting is incorrect, and 
this is serious enough to investigate as soon as possible.  
Depending on various other factors, this can also result in socket 
leaks, segmentation faults, or even remote code execution.

If you are seeing this with standard modules, please provide more 
details.  Ideally - steps how to reproduce this, though 
configuration and debug logs of a particular request should be 
enough.  If you are seeing this with your own or 3rd party 
modules, likely this indicate a bug in these modules.

Maxim Dounin

More information about the nginx-devel mailing list