]> git.kaiwu.me - nginx.git/commitdiff
clear r->keepalive to disable preventively calling
authorIgor Sysoev <igor@sysoev.ru>
Fri, 2 Oct 2009 11:30:47 +0000 (11:30 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 2 Oct 2009 11:30:47 +0000 (11:30 +0000)
ngx_http_set_keepalive() while request cleanup

src/http/ngx_http_request.c

index 7efa2824654679062fb508782530e5d92d18e6fa..6c42f385c5bd508217b2bed1d448eb4d94e360b6 100644 (file)
@@ -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;