internal void MarkAsDownAndScheduleReconnection(Host host, HostConnectionPool pool) { // By setting the host as down, all pools should cancel any outstanding reconnection attempt if (host.SetDown()) { // Only attempt reconnection with 1 connection pool pool.ScheduleReconnection(); } }
internal void OnAllConnectionClosed(Host host, HostConnectionPool pool) { if (_cluster.AnyOpenConnections(host)) { pool.ScheduleReconnection(); return; } // There isn't any open connection to this host in any of the pools MarkAsDownAndScheduleReconnection(host, pool); }