]> git.kaiwu.me - nginx.git/commit
Fixed logging in ngx_http_wait_request_handler().
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 12 Mar 2013 13:38:04 +0000 (13:38 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 12 Mar 2013 13:38:04 +0000 (13:38 +0000)
commit092355b2ccc3954346d9d02e5424c8c816b53d08
tree60bfaf3279d2be3f90c4ea93f9746916b6d9386b
parentf1b6e47b743f378dc5a619ea9b116cfc35ff480d
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.)
src/http/ngx_http_request.c