comparison 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
comparison
equal deleted inserted replaced
291:b87a3cfad343 292:92402f034b28
721 721
722 if (body->buf->in_file) { 722 if (body->buf->in_file) {
723 b->file_pos = file_pos; 723 b->file_pos = file_pos;
724 file_pos += 32 * 1024; 724 file_pos += 32 * 1024;
725 725
726 if (file_pos > body->buf->file_last) { 726 if (file_pos >= body->buf->file_last) {
727 file_pos = body->buf->file_last; 727 file_pos = body->buf->file_last;
728 next = 1; 728 next = 1;
729 } 729 }
730 730
731 b->file_last = file_pos; 731 b->file_last = file_pos;
733 733
734 } else { 734 } else {
735 b->pos = pos; 735 b->pos = pos;
736 pos += 32 * 1024; 736 pos += 32 * 1024;
737 737
738 if (pos > body->buf->last) { 738 if (pos >= body->buf->last) {
739 pos = body->buf->last; 739 pos = body->buf->last;
740 next = 1; 740 next = 1;
741 } 741 }
742 742
743 b->last = pos; 743 b->last = pos;