diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-03-12 13:38:04 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-03-12 13:38:04 +0000 |
commit | 092355b2ccc3954346d9d02e5424c8c816b53d08 (patch) | |
tree | 60bfaf3279d2be3f90c4ea93f9746916b6d9386b /src/http/ngx_http_request.c | |
parent | f1b6e47b743f378dc5a619ea9b116cfc35ff480d (diff) | |
download | nginx-092355b2ccc3954346d9d02e5424c8c816b53d08.tar.gz nginx-092355b2ccc3954346d9d02e5424c8c816b53d08.zip |
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.)
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index a19d32725..87df26237 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -456,7 +456,7 @@ ngx_http_wait_request_handler(ngx_event_t *rev) } 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"); ngx_http_close_connection(c); return; |