This is an automated email from the ASF dual-hosted git repository.
tustvold pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs-object-store.git
The following commit(s) were added to refs/heads/main by this push:
new 70ea197 fix: treat TCP reset as a retryable error (#351)
70ea197 is described below
commit 70ea19700cd79bb467bb78a2692ffe649d95c463
Author: OmriSteiner <[email protected]>
AuthorDate: Sat May 10 09:27:45 2025 +0200
fix: treat TCP reset as a retryable error (#351)
---
src/client/http/connection.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/client/http/connection.rs b/src/client/http/connection.rs
index 2b9da31..4d833e6 100644
--- a/src/client/http/connection.rs
+++ b/src/client/http/connection.rs
@@ -114,6 +114,7 @@ impl HttpError {
match e.kind() {
std::io::ErrorKind::TimedOut => kind =
HttpErrorKind::Timeout,
std::io::ErrorKind::ConnectionAborted
+ | std::io::ErrorKind::ConnectionReset
| std::io::ErrorKind::BrokenPipe
| std::io::ErrorKind::UnexpectedEof => kind =
HttpErrorKind::Interrupted,
_ => {}