diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-06-11 15:28:34 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-11 15:28:34 +0000 |
| commit | 239baac646073cab7bbaf537ba2d6ca844f2c992 (patch) | |
| tree | c7c3f61213697a68dc95898d27a730c08abce049 /src/event/modules/ngx_select_module.c | |
| parent | e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8 (diff) | |
| download | nginx-239baac646073cab7bbaf537ba2d6ca844f2c992.tar.gz nginx-239baac646073cab7bbaf537ba2d6ca844f2c992.tar.bz2 | |
nginx-0.0.1-2003-06-11-19:28:34 import
Diffstat (limited to 'src/event/modules/ngx_select_module.c')
| -rw-r--r-- | src/event/modules/ngx_select_module.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/event/modules/ngx_select_module.c b/src/event/modules/ngx_select_module.c index 6f1296660..96a5d678e 100644 --- a/src/event/modules/ngx_select_module.c +++ b/src/event/modules/ngx_select_module.c @@ -378,7 +378,9 @@ static char *ngx_select_init_conf(ngx_pool_t *pool, void *conf) ecf = ngx_event_get_conf(ngx_event_module); - if (ecf->connections > FD_SETSIZE) { + /* the default FD_SETSIZE is 1024U in FreeBSD 5.x */ + + if ((unsigned) ecf->connections > FD_SETSIZE) { return "maximum number of connections " "supported by select() is " ngx_value(FD_SETSIZE); } |
