fall through to using hard-coded maxsocks value

This commit is contained in:
Eric House 2013-01-20 09:22:35 -08:00
parent 3bcf5d504b
commit b768d8fccc

View file

@ -1577,9 +1577,7 @@ main( int argc, char** argv )
if ( nWorkerThreads == 0 ) { if ( nWorkerThreads == 0 ) {
(void)cfg->GetValueFor( "NTHREADS", &nWorkerThreads ); (void)cfg->GetValueFor( "NTHREADS", &nWorkerThreads );
} }
if ( g_maxsocks == -1 ) { if ( g_maxsocks == -1 && !cfg->GetValueFor( "MAXSOCKS", &g_maxsocks ) ) {
(void)cfg->GetValueFor( "MAXSOCKS", &g_maxsocks );
} else {
g_maxsocks = 100; g_maxsocks = 100;
} }
char serverNameBuf[128]; char serverNameBuf[128];