lib/bunny/session.rb in bunny-2.6.5 vs lib/bunny/session.rb in bunny-2.6.6

- old
+ new

@@ -716,19 +716,17 @@ @logger.debug "Resetting recovery attempt counter after successful reconnection" reset_recovery_attempt_counter! else @logger.debug "Not resetting recovery attempt counter after successful reconnection, as configured" end - reset_recovery_attempt_counter! recover_channels end rescue HostListDepleted reset_address_index retry - rescue TCPConnectionFailedForAllHosts, TCPConnectionFailed, AMQ::Protocol::EmptyResponseError => e + rescue TCPConnectionFailedForAllHosts, TCPConnectionFailed, AMQ::Protocol::EmptyResponseError, SystemCallError => e @logger.warn "TCP connection failed, reconnecting in #{@network_recovery_interval} seconds" - sleep @network_recovery_interval if should_retry_recovery? decrement_recovery_attemp_counter! if recoverable_network_failure?(e) announce_network_failure_recovery retry