Mercurial > hg > nginx
diff src/event/ngx_event_accept.c @ 99:a059e1aa65d4
nginx-0.0.1-2003-06-02-19:24:30 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Jun 2003 15:24:30 +0000 |
parents | c9b243802a17 |
children | 7ebc8b7fb816 |
line wrap: on
line diff
--- a/src/event/ngx_event_accept.c +++ b/src/event/ngx_event_accept.c @@ -1,11 +1,9 @@ #include <ngx_config.h> #include <ngx_core.h> - +#include <ngx_event.h> #include <nginx.h> -#include <ngx_event.h> - void ngx_event_accept(ngx_event_t *ev) { @@ -30,9 +28,11 @@ void ngx_event_accept(ngx_event_t *ev) do { - /* Create the pool before accept() to avoid copy the sockaddr. - Although accept() can fail it's uncommon case - and the pool can be got from the free pool list */ + /* + * Create the pool before accept() to avoid copy the sockaddr. + * Although accept() can fail it's uncommon case + * and the pool can be got from the free pool list + */ pool = ngx_create_pool(ls->pool_size, ev->log); if (pool == NULL) { @@ -168,7 +168,7 @@ void ngx_event_accept(ngx_event_t *ev) ngx_memcpy(c->log, ev->log, sizeof(ngx_log_t)); rev->log = wev->log = c->log; - /* STUB: x86: MT: lock xadd, MP: lock xadd, shared */ + /* TODO: x86: MT: lock xadd, MP: lock xadd, shared */ c->number = ngx_connection_counter++; ngx_log_debug(ev->log, "accept: %d, %d" _ s _ c->number);