comparison src/http/ngx_http_request.c @ 1087:9de12c8d8943

log a real response error code instead of "0"
author Igor Sysoev <igor@sysoev.ru>
date Mon, 29 Jan 2007 11:53:23 +0000
parents 9aca452fe12a
children db7c468c447d
comparison
equal deleted inserted replaced
1086:a62d30719ea1 1087:9de12c8d8943
1494 1494
1495 if (rc == NGX_ERROR 1495 if (rc == NGX_ERROR
1496 || rc == NGX_HTTP_REQUEST_TIME_OUT 1496 || rc == NGX_HTTP_REQUEST_TIME_OUT
1497 || r->connection->error) 1497 || r->connection->error)
1498 { 1498 {
1499 if (rc == NGX_HTTP_CLIENT_CLOSED_REQUEST 1499 if (rc > 0 && r->headers_out.status == 0) {
1500 && r->headers_out.status == 0) 1500 r->headers_out.status = rc;
1501 {
1502 r->headers_out.status = NGX_HTTP_CLIENT_CLOSED_REQUEST;
1503 } 1501 }
1504 1502
1505 if (ngx_http_post_action(r) == NGX_OK) { 1503 if (ngx_http_post_action(r) == NGX_OK) {
1506 return; 1504 return;
1507 } 1505 }