From 2d24d749e48bebc8b5231db4787cf1fdbe950ebd Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 2 Oct 2009 11:30:47 +0000 Subject: clear r->keepalive to disable preventively calling ngx_http_set_keepalive() while request cleanup --- src/http/ngx_http_request.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/http/ngx_http_request.c') 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; -- cgit v1.2.3