# HG changeset patch # User Igor Sysoev # Date 1254483047 0 # Node ID 0e420f3f8e186e9450f5251edf1872f57bef61e2 # Parent 74b74513ed598d24f5824a0c61b62b689072d88d clear r->keepalive to disable preventively calling ngx_http_set_keepalive() while request cleanup diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -2411,6 +2411,8 @@ ngx_http_set_keepalive(ngx_http_request_ } } + r->keepalive = 0; + ngx_http_free_request(r, 0); c->data = hc;