Skip to content

Commit

Permalink
Merge pull request #69 from tkrs/fix/handling-not-connected
Browse files Browse the repository at this point in the history
Fix to reconnect even if the write returned NotConnected
  • Loading branch information
tkrs authored Feb 27, 2019
2 parents def9f6a + 3e98925 commit 607dfb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ impl<W: Write + Reconnect + WriteRetryDelay> ReconnectWrite for W {
// TODO: Consider handling by error kind
match e.kind() {
ErrorKind::BrokenPipe
| ErrorKind::NotConnected
| ErrorKind::ConnectionRefused
| ErrorKind::ConnectionAborted => {
debug!("Try reconnect.");
Expand Down

0 comments on commit 607dfb4

Please sign in to comment.