comparison src/http/ngx_http_request.c @ 672:f41d4b305d22 NGINX_1_2_0

nginx 1.2.0 *) Bugfix: a segmentation fault might occur in a worker process if the "try_files" directive was used; the bug had appeared in 1.1.19. *) Bugfix: response might be truncated if there were more than IOV_MAX buffers used. *) Bugfix: in the "crop" parameter of the "image_filter" directive. Thanks to Maxim Bublis.
author Igor Sysoev <http://sysoev.ru>
date Mon, 23 Apr 2012 00:00:00 +0400
parents 9fbf3ad94cbf
children 4dcaf40cc702
comparison
equal deleted inserted replaced
671:47cb3497fbab 672:f41d4b305d22
610 * Opera and recent Mozilla send the alert. 610 * Opera and recent Mozilla send the alert.
611 */ 611 */
612 612
613 c->ssl->no_wait_shutdown = 1; 613 c->ssl->no_wait_shutdown = 1;
614 614
615 c->log->action = "reading client request line";
616
615 c->read->handler = ngx_http_process_request_line; 617 c->read->handler = ngx_http_process_request_line;
616 /* STUB: epoll edge */ c->write->handler = ngx_http_empty_handler; 618 /* STUB: epoll edge */ c->write->handler = ngx_http_empty_handler;
617 619
618 ngx_http_process_request_line(c->read); 620 ngx_http_process_request_line(c->read);
619 621
1173 return NGX_AGAIN; 1175 return NGX_AGAIN;
1174 } 1176 }
1175 1177
1176 if (n == 0) { 1178 if (n == 0) {
1177 ngx_log_error(NGX_LOG_INFO, c->log, 0, 1179 ngx_log_error(NGX_LOG_INFO, c->log, 0,
1178 "client closed prematurely connection"); 1180 "client prematurely closed connection");
1179 } 1181 }
1180 1182
1181 if (n == 0 || n == NGX_ERROR) { 1183 if (n == 0 || n == NGX_ERROR) {
1182 c->error = 1; 1184 c->error = 1;
1183 c->log->action = "reading client request headers"; 1185 c->log->action = "reading client request headers";
2424 if (err) { 2426 if (err) {
2425 rev->error = 1; 2427 rev->error = 1;
2426 } 2428 }
2427 2429
2428 ngx_log_error(NGX_LOG_INFO, c->log, err, 2430 ngx_log_error(NGX_LOG_INFO, c->log, err,
2429 "client closed prematurely connection"); 2431 "client prematurely closed connection");
2430 2432
2431 ngx_http_finalize_request(r, 0); 2433 ngx_http_finalize_request(r, 0);
2432 } 2434 }
2433 2435
2434 2436