예제 #1
0
 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();
     }
 }
예제 #2
0
 /// <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();
 }
예제 #3
0
 // ReSharper disable UnusedParameter.Local
 private void SetHostDown(Host host, Connection connection, Exception ex)
 {
     host.SetDown();
 }