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(); } }
/// <summary> /// Handler that gets invoked when if there is a socket exception when making a heartbeat/idle request /// </summary> private void OnIdleRequestException(Exception ex) { Host.SetDown(); }
// ReSharper disable UnusedParameter.Local private void SetHostDown(Host host, Connection connection, Exception ex) { host.SetDown(); }