summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-06-06 14:59:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-06-06 14:59:20 +0000
commite4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8 (patch)
treebfa99dbe2be9b41364c325bf1d990958c93247f8 /src/event/ngx_event.c
parent9cf783074fd7793ebb6859e7f62b054d79074efe (diff)
downloadnginx-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.c19
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;