private static void SetPool() { SockIOPool pool = SockIOPool.CheckPools(poolName); if (pool == null) { pool = SockIOPool.GetInstance(poolName); } pool.SetServers(serverlist); pool.InitConnections = 3; pool.MinConnections = 3; pool.MaxConnections = 1000; pool.SocketConnectTimeout = 1000; pool.SocketTimeout = 3000; pool.MaintenanceSleep = 30; pool.Failover = true; pool.Nagle = false; if (!pool.Initialized) { pool.Initialize(); } }