From: Igor Sysoev Date: Fri, 2 Oct 2009 11:30:47 +0000 (+0000) Subject: clear r->keepalive to disable preventively calling X-Git-Tag: release-0.8.18~7 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=2d24d749e48bebc8b5231db4787cf1fdbe950ebd;p=nginx.git 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 index 7efa28246..6c42f385c 100644 --- 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_t *r) } } + r->keepalive = 0; + ngx_http_free_request(r, 0); c->data = hc;