changeset 3180:0e420f3f8e18

clear r->keepalive to disable preventively calling ngx_http_set_keepalive() while request cleanup
author Igor Sysoev <igor@sysoev.ru>
date Fri, 02 Oct 2009 11:30:47 +0000
parents 74b74513ed59
children 36f6407817dc
files src/http/ngx_http_request.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;