Skip to content

Commit

Permalink
Retry spurious HTTP errors.
Browse files Browse the repository at this point in the history
Occasionally we've encountered these errors in production and it'd be
nice if the existing retry policy handled these as well.
  • Loading branch information
DarrenTsung committed Jun 10, 2021
1 parent 16c61ae commit 70db2e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dynomite/src/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ where
}
match error {
RusotoError::Service(e) => e.retryable(),
// Retry spurious HTTP errors.
RusotoError::HttpDispatch(_) => true,
_ => false,
}
}
Expand Down

0 comments on commit 70db2e0

Please sign in to comment.