diff src/http/ngx_http_request.c @ 258:733dffa1fe97

nginx-0.0.2-2004-02-11-10:19:26 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Feb 2004 07:19:26 +0000
parents 70e1c7d2b83d
children d30f2c39caae
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -84,7 +84,7 @@ void ngx_http_init_connection(ngx_connec
     rev = c->read;
     rev->event_handler = ngx_http_init_request;
 
-    /* STUB: epoll edge */ c->write->event_handler = ngx_http_empty_handler;
+    /* STUB: epoll */ c->write->event_handler = ngx_http_empty_handler;
 
     if (rev->ready) {
         /* deferred accept, aio, iocp, epoll */
@@ -1180,8 +1180,6 @@ static void ngx_http_set_keepalive(ngx_h
     }
 
     h = c->buffer;
-    wev = c->write;
-    wev->event_handler = ngx_http_empty_handler;
 
     if (h->pos < h->last) {
 
@@ -1216,6 +1214,8 @@ static void ngx_http_set_keepalive(ngx_h
 
     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) {