Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 257:70e1c7d2b83d
nginx-0.0.2-2004-02-11-20:08:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Feb 2004 17:08:49 +0000 |
parents | 8e39cab6abd5 |
children | 733dffa1fe97 |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Tue Feb 10 16:23:38 2004 +0000 +++ b/src/http/ngx_http_request.c Wed Feb 11 17:08:49 2004 +0000 @@ -84,7 +84,7 @@ 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 */ @@ -1180,6 +1180,8 @@ } h = c->buffer; + wev = c->write; + wev->event_handler = ngx_http_empty_handler; if (h->pos < h->last) { @@ -1214,8 +1216,6 @@ 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) { @@ -1522,7 +1522,7 @@ void ngx_http_close_connection(ngx_connection_t *c) { ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, - "close connection: %d", c->fd); + "close http connection: %d", c->fd); if (c->pool == NULL) { ngx_log_error(NGX_LOG_ALERT, c->log, 0, "connection already closed");