Skip to content

Commit

Permalink
Retry on connection closed errors (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Oct 24, 2024
1 parent bf57ed7 commit ba5f22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SotoCore/RetryPolicy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ extension StandardRetryPolicy {
}
}
return .dontRetry
#if DEBUG
case let httpClientError as HTTPClientError where httpClientError == .remoteConnectionClosed:
return .retry(wait: calculateRetryWaitTime(attempt: attempt))
#endif
case let channelError as ChannelError where channelError == .ioOnClosedChannel:
return .retry(wait: calculateRetryWaitTime(attempt: attempt))
default:
return .dontRetry
}
Expand Down

0 comments on commit ba5f22a

Please sign in to comment.