]> git.kaiwu.me - nginx.git/commitdiff
delete u->cleanup mark, this fixes large values in $upstream_response_time,
authorIgor Sysoev <igor@sysoev.ru>
Fri, 29 Jan 2010 16:45:14 +0000 (16:45 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 29 Jan 2010 16:45:14 +0000 (16:45 +0000)
the bug had been introduced in r3007

src/http/ngx_http_upstream.c

index fa434898f96e511a1c3206a721ddb56ddbb81f87..776a3a1df23ce65a18450ab6893dfb436c81c82b 100644 (file)
@@ -366,6 +366,7 @@ ngx_http_upstream_create(ngx_http_request_t *r)
         r->main->count++;
         ngx_http_upstream_cleanup(r);
         *u->cleanup = NULL;
+        u->cleanup = NULL;
     }
 
     u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t));
@@ -2856,6 +2857,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
 
     if (u->cleanup) {
         *u->cleanup = NULL;
+        u->cleanup = NULL;
     }
 
     if (u->resolved && u->resolved->ctx) {