comparison src/http/ngx_http_request.c @ 5109:44bd04fbbb4f

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.)
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 12 Mar 2013 13:38:04 +0000
parents 4d67b696388f
children a46c1cfe7263
comparison
equal deleted inserted replaced
5108:dcff052728ea 5109:44bd04fbbb4f
454 ngx_http_close_connection(c); 454 ngx_http_close_connection(c);
455 return; 455 return;
456 } 456 }
457 457
458 if (n == 0) { 458 if (n == 0) {
459 ngx_log_error(NGX_LOG_INFO, c->log, ngx_socket_errno, 459 ngx_log_error(NGX_LOG_INFO, c->log, 0,
460 "client closed connection"); 460 "client closed connection");
461 ngx_http_close_connection(c); 461 ngx_http_close_connection(c);
462 return; 462 return;
463 } 463 }
464 464