Mercurial > hg > nginx
changeset 1734:b4d3c9c1ae20 stable-0.5
r1678, r1679 merge:
*) copy protocol value when large request line is copied,
this fixes error "fastcgi: the request record is too big"
*) log how big fastcgi record
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 12 Dec 2007 21:11:21 +0000 |
parents | 7b074520602f |
children | e7800c8d37c1 |
files | src/http/modules/ngx_http_fastcgi_module.c src/http/ngx_http_request.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c Wed Dec 12 21:09:17 2007 +0000 +++ b/src/http/modules/ngx_http_fastcgi_module.c Wed Dec 12 21:11:21 2007 +0000 @@ -551,7 +551,7 @@ if (len > 65535) { ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, - "fastcgi: the request record is too big"); + "fastcgi request record is too big: %uz", len); return NGX_ERROR; }
--- a/src/http/ngx_http_request.c Wed Dec 12 21:09:17 2007 +0000 +++ b/src/http/ngx_http_request.c Wed Dec 12 21:11:21 2007 +0000 @@ -1151,6 +1151,10 @@ r->args_start = new + (r->args_start - old); } + if (r->http_protocol.data) { + r->http_protocol.data = new + (r->http_protocol.data - old); + } + } else { r->header_name_start = new; r->header_name_end = new + (r->header_name_end - old);