repo: ngircd action: commit revision: path_from: revision_from: 3e4f58e4164e4ebb18e3c4df11200c6e72a107e6: path_to: revision_to:
commit 3e4f58e4164e4ebb18e3c4df11200c6e72a107e6 Author: Alexander BartonDate: Wed Dec 18 02:52:51 2002 +0000 - If Conf_MaxConnections is "ulimited" (<1) it is limited to FD_SETSIZE. diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
--- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conf.c,v 1.45 2002/12/18 02:47:12 alex Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.46 2002/12/18 02:52:51 alex Exp $"; #include "imp.h" #include@@ -664,7 +664,7 @@ Validate_Config( BOOLEAN Configtest ) Config_Error( LOG_WARNING, "No administrative information configured but required by RFC!" ); } #ifdef FD_SETSIZE - if( Conf_MaxConnections > (LONG)FD_SETSIZE ) + if(( Conf_MaxConnections > (LONG)FD_SETSIZE ) || ( Conf_MaxConnections < 1 )) { Conf_MaxConnections = (LONG)FD_SETSIZE; Config_Error( LOG_ERR, "Setting MaxConnections to %ld, select() can't handle more file descriptors!", Conf_MaxConnections );
-----END OF PAGE-----