Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 3112:5ddc9458e4bb
increase request counter before an upstream cleanup because the cleanup
decreases the counter via ngx_http_finalize_request(r, NGX_DONE),
the bug was introduced in r3050
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 08 Sep 2009 11:37:50 +0000 |
parents | ffe8bfb38184 |
children | 40b8b398dbbc |
comparison
equal
deleted
inserted
replaced
3111:4a2d3f571de6 | 3112:5ddc9458e4bb |
---|---|
361 ngx_http_upstream_t *u; | 361 ngx_http_upstream_t *u; |
362 | 362 |
363 u = r->upstream; | 363 u = r->upstream; |
364 | 364 |
365 if (u && u->cleanup) { | 365 if (u && u->cleanup) { |
366 r->main->count++; | |
366 ngx_http_upstream_cleanup(r); | 367 ngx_http_upstream_cleanup(r); |
367 *u->cleanup = NULL; | 368 *u->cleanup = NULL; |
368 } | 369 } |
369 | 370 |
370 u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); | 371 u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); |