From: Igor Sysoev Date: Tue, 4 Aug 2009 11:51:10 +0000 (+0000) Subject: continue to parse available fastcgi record after a split header, X-Git-Tag: release-0.8.8~3 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=1b52828cd933a2480250658d967264fa5373d32a;p=nginx.git 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" --- diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 1855e3ccb..8cb0685b6 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -1439,6 +1439,10 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r) part->start = part_start; part->end = u->buffer.last; + if (u->buffer.pos < u->buffer.last) { + continue; + } + return NGX_AGAIN; } }