comparison src/event/modules/ngx_select_module.c @ 103:6dfda4cf5200

nginx-0.0.1-2003-06-11-19:28:34 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Jun 2003 15:28:34 +0000
parents 7e86d028d8f0
children b5be4b0448d3
comparison
equal deleted inserted replaced
102:7e86d028d8f0 103:6dfda4cf5200
376 { 376 {
377 ngx_event_conf_t *ecf; 377 ngx_event_conf_t *ecf;
378 378
379 ecf = ngx_event_get_conf(ngx_event_module); 379 ecf = ngx_event_get_conf(ngx_event_module);
380 380
381 if (ecf->connections > FD_SETSIZE) { 381 /* the default FD_SETSIZE is 1024U in FreeBSD 5.x */
382
383 if ((unsigned) ecf->connections > FD_SETSIZE) {
382 return "maximum number of connections " 384 return "maximum number of connections "
383 "supported by select() is " ngx_value(FD_SETSIZE); 385 "supported by select() is " ngx_value(FD_SETSIZE);
384 } 386 }
385 387
386 return NGX_CONF_OK; 388 return NGX_CONF_OK;