~guilhem-fr/nginx/nginx-1.0

Viewing all changes in revision 3340.

  • Committer: mdounin
  • Date: 2012-03-05 12:15:02 UTC
  • Revision ID: svn-v4:73f98a42-aea0-e011-b76d-00259023448c:branches/stable-1.0:4508
Merge of r4461: 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: