Mercurial > hg > nginx
changeset 3010:37400c84396e
continue to parse available fastcgi record after a split header,
this fixes the erroneous message "upstream prematurely closed connection
while reading response header from upstream"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 04 Aug 2009 11:51:10 +0000 |
parents | 9848a16d05ea |
children | 5957e869f04d |
files | src/http/modules/ngx_http_fastcgi_module.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c Fri Jul 31 12:41:02 2009 +0000 +++ b/src/http/modules/ngx_http_fastcgi_module.c Tue Aug 04 11:51:10 2009 +0000 @@ -1439,6 +1439,10 @@ part->start = part_start; part->end = u->buffer.last; + if (u->buffer.pos < u->buffer.last) { + continue; + } + return NGX_AGAIN; } }