From ce1e64f404db86230f8c55cac7d9a9b72d9858a0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 23 Jun 2008 13:23:29 +0000 Subject: prepare to allow various number of connections in child processes --- src/event/modules/ngx_select_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/event/modules/ngx_select_module.c') diff --git a/src/event/modules/ngx_select_module.c b/src/event/modules/ngx_select_module.c index 19215a79c..a50088ba4 100644 --- a/src/event/modules/ngx_select_module.c +++ b/src/event/modules/ngx_select_module.c @@ -436,10 +436,10 @@ ngx_select_init_conf(ngx_cycle_t *cycle, void *conf) #if !(NGX_WIN32) - if ((unsigned) ecf->connections > FD_SETSIZE) { + if (cycle->connection_n > FD_SETSIZE) { ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, "the maximum number of files " - "supported by select() is " ngx_value(FD_SETSIZE)); + "supported by select() is %ud", FD_SETSIZE); return NGX_CONF_ERROR; } -- cgit