]> git.kaiwu.me - nginx.git/commit
Fixed possible request hang with filter finalization.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 14 May 2012 09:48:05 +0000 (09:48 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 14 May 2012 09:48:05 +0000 (09:48 +0000)
commite302ed6fc3ea48f2ccb5bc410d6306522d4f7497
treec0cb832919dc5d5d0910aad61f534bf5584e4bee
parent7d863c0181064b08fa6b3816522551084fd91af5
Fixed possible request hang with filter finalization.

With r->filter_finalize set the ngx_http_finalize_connection() wasn't
called from ngx_http_finalize_request() called with NGX_OK, resulting in
r->main->count not being decremented, thus causing request hang in some
rare situations.

See here for more details:
http://mailman.nginx.org/pipermail/nginx-devel/2012-May/002190.html

Patch by Yichun Zhang (agentzh).
src/http/ngx_http_request.c