]> git.kaiwu.me - nginx.git/commitdiff
axe old flag remained after ancient "post_accept_timeout" directive
authorIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 20:55:27 +0000 (20:55 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 20:55:27 +0000 (20:55 +0000)
src/http/ngx_http_request.c
src/http/ngx_http_request.h

index b3eab7e24fc2c871213697a1a48454b286d2e62f..03dc68bdf55c7b06b540bd9ab91b5d608b13e58d 100644 (file)
@@ -990,10 +990,9 @@ ngx_http_read_request_header(ngx_http_request_t *r)
     }
 
     if (n == NGX_AGAIN) {
-        if (!r->header_timeout_set) {
+        if (!rev->timer_set) {
             cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
             ngx_add_timer(rev, cscf->client_header_timeout);
-            r->header_timeout_set = 1;
         }
 
         if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
index db1292b8c1bef6287c69a25419d07c5808767705..9073be928d0b2e8ddee1b659776891fb5faf4b29 100644 (file)
@@ -427,8 +427,6 @@ struct ngx_http_request_s {
     unsigned                          fast_subrequest:1;
     unsigned                          subrequest_in_memory:1;
 
-    unsigned                          header_timeout_set:1;
-
     unsigned                          gzip:2;
 
     unsigned                          proxy:1;