diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-06-06 14:59:20 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-06 14:59:20 +0000 |
| commit | e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8 (patch) | |
| tree | bfa99dbe2be9b41364c325bf1d990958c93247f8 /src/event/ngx_event.c | |
| parent | 9cf783074fd7793ebb6859e7f62b054d79074efe (diff) | |
| download | nginx-e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8.tar.gz nginx-e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8.tar.bz2 | |
nginx-0.0.1-2003-06-06-18:59:20 import
Diffstat (limited to 'src/event/ngx_event.c')
| -rw-r--r-- | src/event/ngx_event.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c index be9af2037..f028f5d65 100644 --- a/src/event/ngx_event.c +++ b/src/event/ngx_event.c @@ -6,7 +6,7 @@ #include <ngx_event.h> -#define DEF_CONNECTIONS 1024 +#define DEF_CONNECTIONS 512 extern ngx_module_t ngx_select_module; @@ -367,15 +367,6 @@ static char *ngx_event_init_conf(ngx_pool_t *pool, void *conf) #if (HAVE_KQUEUE) -#if 0 - if (ecf->connections != NGX_CONF_UNSET) { - ecf->connections = (ngx_max_connections < DEF_CONNECTIONS) ? - ngx_max_connections : DEF_CONNECTIONS; - - } else if (ecf->connections > ngx_max_connections) { - } -#endif - ngx_conf_init_value(ecf->connections, DEF_CONNECTIONS); ngx_conf_init_value(ecf->use, ngx_kqueue_module.ctx_index); @@ -393,6 +384,14 @@ static char *ngx_event_init_conf(ngx_pool_t *pool, void *conf) #endif +#if (WIN32) + /* + * Winsock assignes a socket number according to 4 * N + M, + * where M is the constant 32 (98SE), 88 (NT) or 100 (W2K). + * So to find a connection we divide a socket number by 4. + */ +#endif + ngx_conf_init_value(ecf->timer_queues, 10); return NGX_CONF_OK; |
