<div dir="ltr">I know this patch was made for 1.5.x however I patched our 1.4.x build (internal modules are in the process of being upgraded currently). However I am still getting 000 in the logs. I am currently crawling the change logs for similar patches.<div>
<br></div><div>Any chance you can remember any similar issue being resolved in the 1.5.x branch?</div><div><br></div><div>Thanks,</div><div>Mathew</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 25, 2013 at 9:28 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">details: <a href="http://hg.nginx.org/nginx/rev/aadfadd5af2b" target="_blank">http://hg.nginx.org/nginx/rev/aadfadd5af2b</a><br>
branches:<br>
changeset: 5289:aadfadd5af2b<br>
user: Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>><br>
date: Fri Jun 14 20:56:07 2013 +0400<br>
description:<br>
Fixed ngx_http_test_reading() to finalize request properly.<br>
<br>
Previous code called ngx_http_finalize_request() with rc = 0. This is<br>
ok if a response status was already set, but resulted in "000" being<br>
logged if it wasn't. In particular this happened with limit_req<br>
if a connection was prematurely closed during limit_req delay.<br>
<br>
diffstat:<br>
<br>
src/http/ngx_http_request.c | 2 +-<br>
1 files changed, 1 insertions(+), 1 deletions(-)<br>
<br>
diffs (12 lines):<br>
<br>
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c<br>
--- a/src/http/ngx_http_request.c<br>
+++ b/src/http/ngx_http_request.c<br>
@@ -2733,7 +2733,7 @@ closed:<br>
ngx_log_error(NGX_LOG_INFO, c->log, err,<br>
"client prematurely closed connection");<br>
<br>
- ngx_http_finalize_request(r, 0);<br>
+ ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST);<br>
}<br>
<br>
<br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</blockquote></div><br></div>