mirror of
https://github.com/nginx/nginx.git
synced 2024-12-14 03:39:00 +08:00
Fixed logging in ngx_http_wait_request_handler().
If c->recv() returns 0 there is no sense in using ngx_socket_errno for logging, its value meaningless. (The code in question was copied from ngx_http_keepalive_handler(), but ngx_socket_errno makes sense there as it's used as a part of ECONNRESET handling, and the c->recv() call is preceeded by the ngx_set_socket_errno(0) call.)
This commit is contained in:
parent
f1b6e47b74
commit
092355b2cc
@ -456,7 +456,7 @@ ngx_http_wait_request_handler(ngx_event_t *rev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, ngx_socket_errno,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"client closed connection");
|
"client closed connection");
|
||||||
ngx_http_close_connection(c);
|
ngx_http_close_connection(c);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user