]> git.kaiwu.me - nginx.git/commit
Upstream: fixed "too big header" check.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 10 Feb 2012 14:31:04 +0000 (14:31 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 10 Feb 2012 14:31:04 +0000 (14:31 +0000)
commit060b92451bc71c1f4dc1c7d5fdadf4ba69e3539d
tree43c2f7fe83e92d565bcdde1633d3397be17cb8ec
parent891b43db32ad7b21bc9e37f42751cb6fc85a3a73
Upstream: fixed "too big header" check.

If header filter postponed processing of a header by returning NGX_AGAIN
and not moved u->buffer->pos, previous check incorrectly assumed there
is additional space and did another recv() with zero-size buffer.  This
resulted in "upstream prematurely closed connection" error instead
of correct "upstream sent too big header" one.

Patch by Feibo Li.
src/http/ngx_http_upstream.c