Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 483:621229427cba release-0.1.16
nginx-0.1.16-RELEASE import
*) 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; the bug had appeared in 0.1.14.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 25 Jan 2005 12:27:35 +0000 |
parents | fd661d14a7fa |
children | 4ebe09b07e30 |
comparison
equal
deleted
inserted
replaced
482:49f5aef41157 | 483:621229427cba |
---|---|
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; |