Mercurial > hg > nginx
comparison src/event/modules/ngx_select_module.c @ 2062:90312b616162
prepare to allow various number of connections in child processes
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 23 Jun 2008 13:23:29 +0000 |
parents | e584e946e198 |
children | 7615a6c5fb54 |
comparison
equal
deleted
inserted
replaced
2061:b0a1c84725cf | 2062:90312b616162 |
---|---|
434 | 434 |
435 /* disable warning: the default FD_SETSIZE is 1024U in FreeBSD 5.x */ | 435 /* disable warning: the default FD_SETSIZE is 1024U in FreeBSD 5.x */ |
436 | 436 |
437 #if !(NGX_WIN32) | 437 #if !(NGX_WIN32) |
438 | 438 |
439 if ((unsigned) ecf->connections > FD_SETSIZE) { | 439 if (cycle->connection_n > FD_SETSIZE) { |
440 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, | 440 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, |
441 "the maximum number of files " | 441 "the maximum number of files " |
442 "supported by select() is " ngx_value(FD_SETSIZE)); | 442 "supported by select() is %ud", FD_SETSIZE); |
443 return NGX_CONF_ERROR; | 443 return NGX_CONF_ERROR; |
444 } | 444 } |
445 | 445 |
446 #endif | 446 #endif |
447 | 447 |