Mercurial > hg > nginx-ranges
diff src/http/modules/ngx_http_fastcgi_module.c @ 292:92402f034b28 NGINX_0_5_16
nginx 0.5.16
*) Bugfix: the C-class network was not used as hash key in the
"ip_hash" directive.
Thanks to Pavel Yarkovoy.
*) Bugfix: a segmentation fault might occur in worker process if a
charset was set in the "Content-Type" header line and the line has
trailing ";"; bug appeared in 0.3.50.
*) Bugfix: the "[alert] zero size buf" error when FastCGI server was
used and an request body written in a temporary file was multiple of
32K.
*) Bugfix: nginx could not be built on Solaris without the --with-debug
option; bug appeared in 0.5.15.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 26 Mar 2007 00:00:00 +0400 |
parents | 0b1cc3960e27 |
children | 55328d69b335 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -723,7 +723,7 @@ ngx_http_fastcgi_create_request(ngx_http b->file_pos = file_pos; file_pos += 32 * 1024; - if (file_pos > body->buf->file_last) { + if (file_pos >= body->buf->file_last) { file_pos = body->buf->file_last; next = 1; } @@ -735,7 +735,7 @@ ngx_http_fastcgi_create_request(ngx_http b->pos = pos; pos += 32 * 1024; - if (pos > body->buf->last) { + if (pos >= body->buf->last) { pos = body->buf->last; next = 1; }