From 1b52828cd933a2480250658d967264fa5373d32a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 4 Aug 2009 11:51:10 +0000 Subject: 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" --- src/http/modules/ngx_http_fastcgi_module.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/modules') 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; } } -- cgit