From a21e30b91900dbbde5ea7fbc5ed4b2ec59969de7 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 13 Apr 2004 05:27:03 +0000 Subject: nginx-0.0.3-2004-04-13-09:27:03 import --- src/http/modules/proxy/ngx_http_proxy_handler.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/modules/proxy') 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) { -- cgit