Mercurial > hg > nginx-mail
comparison src/http/modules/proxy/ngx_http_proxy_upstream.c @ 4:4b2dafa26fe2 NGINX_0_1_2
nginx 0.1.2
*) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS
options in configure.
*) Feature: the server_name directive supports *.domain.tld.
*) Bugfix: the portability improvements.
*) Bugfix: if configuration file was set in command line, the
reconfiguration was impossible; bug appeared in 0.1.1.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
*) Bugfix: with sendfile the response was not recoded according to the
charset module directives; bug appeared in 0.1.1.
*) Bugfix: very seldom bug in the kqueue processing.
*) Bugfix: the gzip module compressed the proxied responses that was
already compressed.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 21 Oct 2004 00:00:00 +0400 |
parents | cc9f381affaa |
children | 80ba094c6b3e |
comparison
equal
deleted
inserted
replaced
3:8beaf7b3241f | 4:4b2dafa26fe2 |
---|---|
690 return; | 690 return; |
691 } | 691 } |
692 | 692 |
693 /* rc == NGX_OK */ | 693 /* rc == NGX_OK */ |
694 | 694 |
695 #if 1 /* test only, see below about "post aio operation" */ | 695 #if 0 /* test only, see below about "post aio operation" */ |
696 | 696 |
697 if (c->read->ready) { | 697 if (c->read->ready) { |
698 /* post aio operation */ | 698 /* post aio operation */ |
699 ngx_http_proxy_process_upstream_status_line(c->read); | 699 ngx_http_proxy_process_upstream_status_line(c->read); |
700 return; | 700 #if 0 |
701 return; | |
702 #endif | |
701 } | 703 } |
702 | 704 |
703 #endif | 705 #endif |
704 | 706 |
705 ngx_http_proxy_send_request(p); | 707 ngx_http_proxy_send_request(p); |
716 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, | 718 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, |
717 "http proxy send request"); | 719 "http proxy send request"); |
718 | 720 |
719 #if (HAVE_KQUEUE) | 721 #if (HAVE_KQUEUE) |
720 | 722 |
721 if ((ngx_event_flags & NGX_HAVE_KQUEUE_EVENT) | 723 if ((ngx_event_flags & NGX_USE_KQUEUE_EVENT) |
722 && !p->request_sent | 724 && !p->request_sent |
723 && c->write->pending_eof) | 725 && c->write->pending_eof) |
724 { | 726 { |
725 ngx_log_error(NGX_LOG_ERR, c->log, c->write->kq_errno, | 727 ngx_log_error(NGX_LOG_ERR, c->log, c->write->kq_errno, |
726 "connect() failed"); | 728 "connect() failed"); |
774 return; | 776 return; |
775 } | 777 } |
776 | 778 |
777 ngx_add_timer(c->read, p->lcf->read_timeout); | 779 ngx_add_timer(c->read, p->lcf->read_timeout); |
778 | 780 |
779 #if 0 | 781 #if 1 |
780 if (c->read->ready) { | 782 if (c->read->ready) { |
781 | 783 |
782 /* post aio operation */ | 784 /* post aio operation */ |
783 | 785 |
784 /* | 786 /* |