Mercurial > hg > nginx
changeset 5302:292c92fb05d7
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 25 Jul 2013 15:00:25 +0400 |
parents | a50e26148d21 |
children | 0fb714d80909 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Thu Jul 25 15:00:12 2013 +0400 +++ b/src/http/ngx_http_upstream.c Thu Jul 25 15:00:25 2013 +0400 @@ -3405,6 +3405,7 @@ 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;