diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-08-26 16:14:57 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-08-26 16:14:57 +0000 |
commit | 5297d456d82a17b2511624d96c9518fcc61ba44f (patch) | |
tree | 57d55b36b8f5efa87ea315ce56503aa486e96bf1 /src/http/ngx_http_upstream.c | |
parent | b603dd4b43b8c4b2cf8a1e74a87fd5799ab537b6 (diff) | |
download | nginx-5297d456d82a17b2511624d96c9518fcc61ba44f.tar.gz nginx-5297d456d82a17b2511624d96c9518fcc61ba44f.zip |
axe r->connection->destroyed testing
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 404be48ef..f552d2e76 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2260,10 +2260,6 @@ ngx_http_upstream_process_non_buffered_request(ngx_http_request_t *r, if (u->out_bufs || u->busy_bufs) { rc = ngx_http_output_filter(r, u->out_bufs); - if (downstream->destroyed) { - return; - } - if (rc == NGX_ERROR) { ngx_http_upstream_finalize_request(r, u, 0); return; @@ -2436,11 +2432,6 @@ ngx_http_upstream_process_downstream(ngx_http_request_t *r) } if (ngx_event_pipe(p, wev->write) == NGX_ABORT) { - - if (c->destroyed) { - return; - } - ngx_http_upstream_finalize_request(r, u, 0); return; } @@ -2466,11 +2457,6 @@ ngx_http_upstream_process_downstream(ngx_http_request_t *r) } if (ngx_event_pipe(p, 1) == NGX_ABORT) { - - if (c->destroyed) { - return; - } - ngx_http_upstream_finalize_request(r, u, 0); return; } @@ -2498,14 +2484,7 @@ ngx_http_upstream_process_upstream(ngx_http_request_t *r, ngx_connection_error(c, NGX_ETIMEDOUT, "upstream timed out"); } else { - c = r->connection; - if (ngx_event_pipe(u->pipe, 0) == NGX_ABORT) { - - if (c->destroyed) { - return; - } - ngx_http_upstream_finalize_request(r, u, 0); return; } |