diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-13 05:27:03 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-13 05:27:03 +0000 |
commit | a21e30b91900dbbde5ea7fbc5ed4b2ec59969de7 (patch) | |
tree | c7d5450dabaf85a756ef61dd9abb0fb771792934 /src/http/modules/proxy/ngx_http_proxy_handler.c | |
parent | 43f131923f25600c771e014a7eebf74d407776a7 (diff) | |
download | nginx-a21e30b91900dbbde5ea7fbc5ed4b2ec59969de7.tar.gz nginx-a21e30b91900dbbde5ea7fbc5ed4b2ec59969de7.zip |
nginx-0.0.3-2004-04-13-09:27:03 import
Diffstat (limited to 'src/http/modules/proxy/ngx_http_proxy_handler.c')
-rw-r--r-- | src/http/modules/proxy/ngx_http_proxy_handler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/proxy/ngx_http_proxy_handler.c b/src/http/modules/proxy/ngx_http_proxy_handler.c index 84c926470..017d7c8d0 100644 --- a/src/http/modules/proxy/ngx_http_proxy_handler.c +++ b/src/http/modules/proxy/ngx_http_proxy_handler.c @@ -425,6 +425,10 @@ void ngx_http_proxy_check_broken_connection(ngx_event_t *ev) n = recv(c->fd, buf, 1, MSG_PEEK); + if (ev->write && n >= 0) { + return; + } + if (n > 0) { if ((ngx_event_flags & NGX_USE_LEVEL_EVENT) && ev->active) { if (ngx_del_event(ev, NGX_READ_EVENT, 0) == NGX_ERROR) { |