From 98c1cf18c1a4ffb14ded78e93359f87ee7bdeed4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 2 Jul 2004 15:54:34 +0000 Subject: nginx-0.0.7-2004-07-02-19:54:34 import --- src/http/modules/proxy/ngx_http_proxy_handler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/http/modules/proxy/ngx_http_proxy_handler.c') diff --git a/src/http/modules/proxy/ngx_http_proxy_handler.c b/src/http/modules/proxy/ngx_http_proxy_handler.c index b7177a339..5d646bb1c 100644 --- a/src/http/modules/proxy/ngx_http_proxy_handler.c +++ b/src/http/modules/proxy/ngx_http_proxy_handler.c @@ -385,7 +385,7 @@ void ngx_http_proxy_check_broken_connection(ngx_event_t *ev) if (ngx_event_flags & NGX_HAVE_KQUEUE_EVENT) { - if (!ev->kq_eof) { + if (!ev->pending_eof) { return; } @@ -641,11 +641,11 @@ void ngx_http_proxy_close_connection(ngx_http_proxy_ctx_t *p) ngx_del_conn(c, NGX_CLOSE_EVENT); } else { - if (c->read->active || c->read->posted) { + if (c->read->active || c->read->disabled) { ngx_del_event(c->read, NGX_READ_EVENT, NGX_CLOSE_EVENT); } - if (c->write->active || c->read->posted) { + if (c->write->active || c->read->disabled) { ngx_del_event(c->write, NGX_WRITE_EVENT, NGX_CLOSE_EVENT); } } -- cgit v1.2.3