comparison src/http/modules/ngx_http_fastcgi_module.c @ 188:af37b7cb6698 NGINX_0_3_41

nginx 0.3.41 *) Feature: the -v switch. *) Bugfix: the segmentation fault may occurred if the SSI page has remote subrequests. *) Bugfix: in FastCGI handling. *) Bugfix: if the perl modules path was not set using --with-perl_modules_path=PATH or the "perl_modules", then the segmentation fault was occurred.
author Igor Sysoev <http://sysoev.ru>
date Fri, 21 Apr 2006 00:00:00 +0400
parents 54aabf2b0bc6
children e6da4931e0e0
comparison
equal deleted inserted replaced
187:c0ed72c62dfa 188:af37b7cb6698
1171 /* f->state == ngx_http_fastcgi_st_data */ 1171 /* f->state == ngx_http_fastcgi_st_data */
1172 1172
1173 if (f->type == NGX_HTTP_FASTCGI_STDERR) { 1173 if (f->type == NGX_HTTP_FASTCGI_STDERR) {
1174 1174
1175 if (f->length) { 1175 if (f->length) {
1176
1177 if (f->pos == f->last) {
1178 break;
1179 }
1180
1176 line.data = f->pos; 1181 line.data = f->pos;
1177 1182
1178 if (f->pos + f->length <= f->last) { 1183 if (f->pos + f->length <= f->last) {
1179 line.len = f->length; 1184 line.len = f->length;
1180 f->pos += f->length; 1185 f->pos += f->length;
1209 continue; 1214 continue;
1210 } 1215 }
1211 1216
1212 1217
1213 /* f->type == NGX_HTTP_FASTCGI_STDOUT */ 1218 /* f->type == NGX_HTTP_FASTCGI_STDOUT */
1219
1220 if (f->pos == f->last) {
1221 break;
1222 }
1214 1223
1215 if (p->free) { 1224 if (p->free) {
1216 b = p->free->buf; 1225 b = p->free->buf;
1217 p->free = p->free->next; 1226 p->free = p->free->next;
1218 1227