aboutsummaryrefslogtreecommitdiff
path: root/src/event/modules/ngx_select_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/modules/ngx_select_module.c')
-rw-r--r--src/event/modules/ngx_select_module.c4
1 files changed, 2 insertions, 2 deletions
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;
}