From 7b6062a1b8f1f5d1b56deaad17aacde6f97b58c5 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 12 Feb 2004 20:57:10 +0000 Subject: nginx-0.0.2-2004-02-12-23:57:10 import --- src/http/ngx_http_request.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 84abfdabd..d93c61c2b 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -84,10 +84,10 @@ void ngx_http_init_connection(ngx_connection_t *c) rev = c->read; rev->event_handler = ngx_http_init_request; - /* STUB: epoll */ c->write->event_handler = ngx_http_empty_handler; + /* STUB: epoll edge */ c->write->event_handler = ngx_http_empty_handler; if (rev->ready) { - /* deferred accept, aio, iocp, epoll */ + /* deferred accept, aio, iocp */ ngx_http_init_request(rev); return; } @@ -1180,6 +1180,8 @@ static void ngx_http_set_keepalive(ngx_http_request_t *r) } h = c->buffer; + wev = c->write; + wev->event_handler = ngx_http_empty_handler; if (h->pos < h->last) { @@ -1214,8 +1216,6 @@ static void ngx_http_set_keepalive(ngx_http_request_t *r) h->pos = h->last = h->start; rev->event_handler = ngx_http_keepalive_handler; - wev = c->write; - wev->event_handler = ngx_http_empty_handler; if (wev->active) { if (ngx_event_flags & NGX_HAVE_KQUEUE_EVENT) { -- cgit v1.2.3