Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
mark connection refused errors as an ephemeral error (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc-msft authored Feb 4, 2021
1 parent a50eb94 commit 4abfbec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/agent/reqwest-retry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fn to_backoff_response(
match io_error.kind() {
ErrorKind::ConnectionAborted
| ErrorKind::ConnectionReset
| ErrorKind::ConnectionRefused
| ErrorKind::TimedOut
| ErrorKind::NotConnected => return true,
_ => (),
Expand Down

0 comments on commit 4abfbec

Please sign in to comment.