comparison src/event/modules/ngx_select_module.c @ 355:0fb6c53fb135

nginx-0.0.7-2004-06-15-21:47:16 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 15 Jun 2004 17:47:16 +0000
parents ba876b26b76d
children 2e3cbc1bbe3c
comparison
equal deleted inserted replaced
354:eaf1f651cf86 355:0fb6c53fb135
594 return NGX_CONF_OK; 594 return NGX_CONF_OK;
595 } 595 }
596 596
597 /* disable warning: the default FD_SETSIZE is 1024U in FreeBSD 5.x */ 597 /* disable warning: the default FD_SETSIZE is 1024U in FreeBSD 5.x */
598 598
599 #if !(WIN32)
599 if ((unsigned) ecf->connections > FD_SETSIZE) { 600 if ((unsigned) ecf->connections > FD_SETSIZE) {
600 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, 601 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0,
601 "the maximum number of files " 602 "the maximum number of files "
602 "supported by select() is " ngx_value(FD_SETSIZE)); 603 "supported by select() is " ngx_value(FD_SETSIZE));
603 return NGX_CONF_ERROR; 604 return NGX_CONF_ERROR;
604 } 605 }
606 #endif
605 607
606 return NGX_CONF_OK; 608 return NGX_CONF_OK;
607 } 609 }