commit | 060b92451bc71c1f4dc1c7d5fdadf4ba69e3539d | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Fri Feb 10 14:31:04 2012 +0000 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Fri Feb 10 14:31:04 2012 +0000 |
tree | 43c2f7fe83e92d565bcdde1633d3397be17cb8ec | |
parent | 891b43db32ad7b21bc9e37f42751cb6fc85a3a73 [diff] |
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.