aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-06-14 20:56:07 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-06-14 20:56:07 +0400
commitf52042498d17ab595ea5f372e53eb5f8690bb795 (patch)
treeadf1dffd39a2355eba78b4f4fb6e6038f4847160 /src
parent1936a67647c71291fad0fdc022ac891f4c29e03c (diff)
downloadnginx-f52042498d17ab595ea5f372e53eb5f8690bb795.tar.gz
nginx-f52042498d17ab595ea5f372e53eb5f8690bb795.zip
Fixed ngx_http_test_reading() to finalize request properly.
Previous code called ngx_http_finalize_request() with rc = 0. This is ok if a response status was already set, but resulted in "000" being logged if it wasn't. In particular this happened with limit_req if a connection was prematurely closed during limit_req delay.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 64f31b2c3..ca738cbb6 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2733,7 +2733,7 @@ closed:
ngx_log_error(NGX_LOG_INFO, c->log, err,
"client prematurely closed connection");
- ngx_http_finalize_request(r, 0);
+ ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST);
}