Mercurial > hg > nginx
comparison src/event/ngx_event_accept.c @ 119:cd54bcbaf3b5
nginx-0.0.1-2003-07-21-01:15:59 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 20 Jul 2003 21:15:59 +0000 |
parents | f6e3c5d019b6 |
children | b3655b21375a |
comparison
equal
deleted
inserted
replaced
118:5bf52498665c | 119:cd54bcbaf3b5 |
---|---|
65 ngx_destroy_pool(pool); | 65 ngx_destroy_pool(pool); |
66 return; | 66 return; |
67 } | 67 } |
68 | 68 |
69 /* disable warnings: Win32 SOCKET is u_int while UNIX socket is int */ | 69 /* disable warnings: Win32 SOCKET is u_int while UNIX socket is int */ |
70 | |
70 if ((unsigned) s >= (unsigned) ecf->connections) { | 71 if ((unsigned) s >= (unsigned) ecf->connections) { |
71 | 72 |
72 ngx_log_error(NGX_LOG_ALERT, ev->log, 0, | 73 ngx_log_error(NGX_LOG_ALERT, ev->log, 0, |
73 "accept() %s returned socket #%d while " | 74 "accept() %s returned socket #%d while " |
74 "only %d connections was configured, " | 75 "only %d connections was configured, " |
181 | 182 |
182 c->log = ngx_palloc(c->pool, sizeof(ngx_log_t)); | 183 c->log = ngx_palloc(c->pool, sizeof(ngx_log_t)); |
183 if (c->log == NULL) { | 184 if (c->log == NULL) { |
184 return; | 185 return; |
185 } | 186 } |
186 ngx_memcpy(c->log, ev->log, sizeof(ngx_log_t)); | 187 ngx_memcpy(c->log, ls->log, sizeof(ngx_log_t)); |
187 rev->log = wev->log = c->log; | 188 rev->log = wev->log = c->log; |
188 | 189 |
189 /* TODO: x86: MT: lock xadd, MP: lock xadd, shared */ | 190 /* TODO: x86: MT: lock xadd, MP: lock xadd, shared */ |
190 c->number = ngx_connection_counter++; | 191 c->number = ngx_connection_counter++; |
191 | 192 |