comparison src/event/ngx_event_accept.c @ 92:19cc647ecd91

nginx-0.0.1-2003-05-20-19:37:55 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 20 May 2003 15:37:55 +0000
parents 637625a2acdb
children 738fe44c70d5
comparison
equal deleted inserted replaced
91:637625a2acdb 92:19cc647ecd91
30 #if 0 30 #if 0
31 /* DEBUG */ ev->available++; 31 /* DEBUG */ ev->available++;
32 #endif 32 #endif
33 33
34 do { 34 do {
35
36 /* Create the pool before accept() to avoid copy the sockaddr.
37 Although accept() can fail it's uncommon case
38 and the pool can be got from the free pool list */
39
35 pool = ngx_create_pool(ls->pool_size, ev->log); 40 pool = ngx_create_pool(ls->pool_size, ev->log);
36 if (pool == NULL) { 41 if (pool == NULL) {
37 return; 42 return;
38 } 43 }
39 44