aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-07-25 15:00:25 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-07-25 15:00:25 +0400
commit86277254dda48d76f3617ceb8ee934dfddeb332f (patch)
tree77f1dffb2aad6b1c6ace37b2bb12f1d8ce4a6bfa /src
parent960d0bfe344d70223fec74079378992897855cc3 (diff)
downloadnginx-86277254dda48d76f3617ceb8ee934dfddeb332f.tar.gz
nginx-86277254dda48d76f3617ceb8ee934dfddeb332f.zip
Upstream: NGX_HTTP_CLIENT_CLOSED_REQUEST no longer reset to 0.
The NGX_HTTP_CLIENT_CLOSED_REQUEST code is allowed to happen after we started sending a response (much like NGX_HTTP_REQUEST_TIME_OUT), so there is no need to reset response code to 0 in this case.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index c4e0c645c..8590f4e2e 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -3405,6 +3405,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
if (u->header_sent
&& rc != NGX_HTTP_REQUEST_TIME_OUT
+ && rc != NGX_HTTP_CLIENT_CLOSED_REQUEST
&& (rc == NGX_ERROR || rc >= NGX_HTTP_SPECIAL_RESPONSE))
{
rc = 0;