Skip to content

Commit 47ffcfa

Browse files
authored
Feat: retries connection-related ClientError types (#858)
1 parent 0fbefba commit 47ffcfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

s3fs/core.py

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ async def _error_wrapper(func, *, args=(), kwargs=None, retries):
120120
err = e
121121
if "SlowDown" in str(e):
122122
await asyncio.sleep(min(1.7**i * 0.1, 15))
123+
elif "XAmzContentSHA256Mismatch" in str(e):
124+
await asyncio.sleep(min(1.7**i * 0.1, 15))
123125
else:
124126
break
125127
except Exception as e:

0 commit comments

Comments
 (0)