diff src/http/ngx_http_request.c @ 253:b6793bc5034b

nginx-0.0.2-2004-02-09-10:46:43 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 09 Feb 2004 07:46:43 +0000
parents 008276b9e061
children 8e39cab6abd5
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -84,6 +84,8 @@ void ngx_http_init_connection(ngx_connec
     rev->event_handler = ngx_http_init_request;
     rev->log_error = NGX_ERROR_INFO;
 
+    /* STUB: epoll */ c->write->event_handler = ngx_http_empty_handler;
+
     if (rev->ready) {
         /* deferred accept, aio, iocp, epoll */
         ngx_http_init_request(rev);
@@ -160,7 +162,7 @@ static void ngx_http_init_request(ngx_ev
     if (in_port->addrs.nelts > 1) {
 
         /*
-         * There're the several addresses on this port and one of them
+         * There are the several addresses on this port and one of them
          * is "*:port" so getsockname() is needed to determine
          * the server address.
          * AcceptEx() already gave this address.
@@ -215,8 +217,8 @@ static void ngx_http_init_request(ngx_ev
     c->log->log_level = clcf->err_log->log_level;
 
     if (c->buffer == NULL) {
-        c->buffer =
-                ngx_create_temp_hunk(c->pool, cscf->client_header_buffer_size);
+        c->buffer = ngx_create_temp_hunk(c->pool,
+                                         cscf->client_header_buffer_size);
         if (c->buffer == NULL) {
             ngx_http_close_connection(c);
             return;
@@ -918,7 +920,7 @@ void ngx_http_finalize_request(ngx_http_
 #if (NGX_KQUEUE)
         ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log,
                        r->connection->read->kq_errno,
-                       "kevent reported about closed connection by client");
+                       "kevent() reported about an closed connection");
 #endif
         ngx_http_close_request(r, 0);
         ngx_http_close_connection(r->connection);