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
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -1439,6 +1439,10 @@ ngx_http_fastcgi_process_header(ngx_http
         part->start = part_start;
         part->end = u->buffer.last;
 
+        if (u->buffer.pos < u->buffer.last) {
+            continue;
+        }
+
         return NGX_AGAIN;
     }
 }