diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-02-20 16:44:08 +0000 |
---|---|---|
committer | Jonathan Kolb <jon@b0g.us> | 2006-02-20 16:44:08 +0000 |
commit | f3a7a11445eb00c65f981f7ad2ba272f92edde1f (patch) | |
tree | e0d8b48ad57dcb088139a2829ae80f9669748e23 /src/http/ngx_http_upstream.c | |
parent | cbd320652e8ec7a9884fce5e06dcf6681ab04068 (diff) | |
download | nginx-f3a7a11445eb00c65f981f7ad2ba272f92edde1f.tar.gz |
Changes with nginx 0.3.29 20 Feb 2006v0.3.29
*) Feature: now nginx uses less memory, if PHP in FastCGI mode sends
many warnings before the response.
*) Bugfix: the "Transfer-Encoding: chunked" header line was issued in
the 204 responses for the HTTP/1.1 requests.
*) Bugfix: nginx returned the 502 response, if the complete response
header lines were transferred in a separate FastCGI records.
*) Bugfix: if the proxied URI was specified in the "post_action"
directive, then it ran only after a successful completion of a
request.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index cb5528371..e73b3b379 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -283,8 +283,12 @@ ngx_http_upstream_init(ngx_http_request_t *r) ngx_del_timer(c->read); } - r->read_event_handler = ngx_http_upstream_rd_check_broken_connection; - r->write_event_handler = ngx_http_upstream_wr_check_broken_connection; + if (!(r->http_version == NGX_HTTP_VERSION_9 && r->header_only)) { + /* not a post_action */ + + r->read_event_handler = ngx_http_upstream_rd_check_broken_connection; + r->write_event_handler = ngx_http_upstream_wr_check_broken_connection; + } if (ngx_event_flags & NGX_USE_CLEAR_EVENT) { |