comparison src/http/modules/ngx_http_fastcgi_module.c @ 276:c5c2b2883984 NGINX_0_5_8

nginx 0.5.8 *) Bugfix: a segmentation fault might occur if "client_body_in_file_only on" was used and a request body was small. *) Bugfix: a segmentation fault occurred if "client_body_in_file_only on" and "proxy_pass_request_body off" or "fastcgi_pass_request_body off" directives were used, and nginx switched to a next upstream. *) Bugfix: if the "proxy_buffering off" directive was used and a client connection was non-active, then the connection was closed after send timeout; bug appeared in 0.4.7. *) Bugfix: if the "epoll" method was used and a client closed a connection prematurely, then nginx closed the connection after a send timeout only. *) Bugfix: the "[alert] zero size buf" error when FastCGI server was used. *) Bugfixes in the "limit_zone" directive.
author Igor Sysoev <http://sysoev.ru>
date Fri, 19 Jan 2007 00:00:00 +0300
parents 052a7b1d40e5
children 3dbecd747fbb
comparison
equal deleted inserted replaced
275:1779577cb845 276:c5c2b2883984
1306 p->last_in = &cl->next; 1306 p->last_in = &cl->next;
1307 1307
1308 1308
1309 /* STUB */ b->num = buf->num; 1309 /* STUB */ b->num = buf->num;
1310 1310
1311 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, "input buf #%d", b->num);
1312
1313 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0, 1311 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0,
1314 "input buf %p %z", b->pos, b->last - b->pos); 1312 "input buf #%d %p", b->num, b->pos);
1315
1316 1313
1317 if (f->pos + f->length < f->last) { 1314 if (f->pos + f->length < f->last) {
1318 1315
1319 if (f->padding) { 1316 if (f->padding) {
1320 f->state = ngx_http_fastcgi_st_padding; 1317 f->state = ngx_http_fastcgi_st_padding;
1352 if (b) { 1349 if (b) {
1353 b->shadow = buf; 1350 b->shadow = buf;
1354 b->last_shadow = 1; 1351 b->last_shadow = 1;
1355 1352
1356 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0, 1353 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0,
1357 "input buf last %p %z", b->pos, b->last - b->pos); 1354 "input buf %p %z", b->pos, b->last - b->pos);
1358 1355
1359 return NGX_OK; 1356 return NGX_OK;
1360 } 1357 }
1361 1358
1362 /* there is no data record in the buf, add it to free chain */ 1359 /* there is no data record in the buf, add it to free chain */