Skip to content

Commit

Permalink
Retry on more types of exceptions (#104)
Browse files Browse the repository at this point in the history
Including `ServerDisconnectedError`.
  • Loading branch information
Gal Topper authored Nov 28, 2022
1 parent d9dd1dc commit b592bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3io/aio/dataplane/transport/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def request(self, container, access_key, raise_for_status, encoder, encode
except v3io.dataplane.response.HttpResponseError as response_error:
self._logger.warn_with("Response error: {}".format(str(response_error)))
raise response_error
except aiohttp.ClientOSError:
except aiohttp.ClientConnectionError:
client_os_error_retry_counter += 1
if client_os_error_retry_counter == len(self.retry_intervals):
raise
Expand Down

0 comments on commit b592bd6

Please sign in to comment.