comparison src/http/ngx_http_core_module.c @ 32:da8c190bdaba NGINX_0_1_16

nginx 0.1.16 *) Bugfix: if the response were transferred by chunks, then on the HEAD request the final chunk was issued. *) Bugfix: the "Connection: keep-alive" header were issued, even if the keepalive_timeout directive forbade the keep-alive use. *) Bugfix: the errors in the ngx_http_fastcgi_module caused the segmentation faults. *) Bugfix: the compressed response encrypted by SSL may not transferred complete. *) Bugfix: the TCP-specific TCP_NODELAY, TCP_NOPSUH, and TCP_CORK options, are not used for the unix domain sockets. *) Feature: the rewrite directive supports the arguments rewriting. *) Bugfix: the response code 400 was returned for the POST request with the "Content-Length: 0" header; bug appeared in 0.1.14.
author Igor Sysoev <http://sysoev.ru>
date Tue, 25 Jan 2005 00:00:00 +0300
parents e1ada20fc595
children aab2ea7c0458
comparison
equal deleted inserted replaced
31:1b17dd824438 32:da8c190bdaba
349 }; 349 };
350 350
351 351
352 void ngx_http_handler(ngx_http_request_t *r) 352 void ngx_http_handler(ngx_http_request_t *r)
353 { 353 {
354 ngx_http_log_ctx_t *ctx; 354 r->connection->log->action = NULL;
355 355
356 r->connection->unexpected_eof = 0; 356 r->connection->unexpected_eof = 0;
357
358 ctx = r->connection->log->data;
359 ctx->action = NULL;
360 357
361 switch (r->headers_in.connection_type) { 358 switch (r->headers_in.connection_type) {
362 case 0: 359 case 0:
363 if (r->http_version > NGX_HTTP_VERSION_10) { 360 if (r->http_version > NGX_HTTP_VERSION_10) {
364 r->keepalive = 1; 361 r->keepalive = 1;
537 if ((ngx_io.flags & NGX_IO_SENDFILE) && clcf->sendfile) { 534 if ((ngx_io.flags & NGX_IO_SENDFILE) && clcf->sendfile) {
538 r->connection->sendfile = 1; 535 r->connection->sendfile = 1;
539 536
540 } else { 537 } else {
541 r->connection->sendfile = 0; 538 r->connection->sendfile = 0;
539 }
540
541 if (r->keepalive && clcf->keepalive_timeout == 0) {
542 r->keepalive = 0;
542 } 543 }
543 544
544 if (!clcf->tcp_nopush) { 545 if (!clcf->tcp_nopush) {
545 /* disable TCP_NOPUSH/TCP_CORK use */ 546 /* disable TCP_NOPUSH/TCP_CORK use */
546 r->connection->tcp_nopush = NGX_TCP_NOPUSH_DISABLED; 547 r->connection->tcp_nopush = NGX_TCP_NOPUSH_DISABLED;