diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-08-04 11:51:10 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-08-04 11:51:10 +0000 |
commit | 1b52828cd933a2480250658d967264fa5373d32a (patch) | |
tree | 4f259b52436b2165a09a88121ba89c48752fe0eb /src/http/modules/ngx_http_fastcgi_module.c | |
parent | 5fab2826982fd35214c54fa72498769e4d906ff3 (diff) | |
download | nginx-1b52828cd933a2480250658d967264fa5373d32a.tar.gz nginx-1b52828cd933a2480250658d967264fa5373d32a.zip |
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"
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |