Skip to content

Commit

Permalink
a connection timeout should trigger a retry
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Feb 16, 2021
1 parent 09e3b9b commit 64d3edc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connection_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ impl<Exe: Executor> ConnectionManager<Exe> {
{
Ok(c) => break c,
Err(ConnectionError::Io(e)) => {
if e.kind() != std::io::ErrorKind::ConnectionRefused {
if e.kind() != std::io::ErrorKind::ConnectionRefused ||
e.kind() != std::io::ErrorKind::TimedOut {
return Err(ConnectionError::Io(e));
}

Expand Down

0 comments on commit 64d3edc

Please sign in to comment.