mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 04:12:40 +08:00
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.
This commit is contained in:
parent
960d0bfe34
commit
86277254dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user