Skip to content

Commit

Permalink
ad read timeout for retry (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-IshanBhatt authored Dec 4, 2024
1 parent 8dd1189 commit 644706f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esrally/utils/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def download_http(url, local_path, expected_size_in_bytes=None, progress_indicat
for i in range(HTTP_DOWNLOAD_RETRIES + 1):
try:
return _download_http(url, local_path, expected_size_in_bytes, progress_indicator)
except urllib3.exceptions.ProtocolError as exc:
except (urllib3.exceptions.ProtocolError, urllib3.exceptions.ReadTimeoutError) as exc:
if i == HTTP_DOWNLOAD_RETRIES:
raise
logger.warning("Retrying after %s", exc)
Expand Down

0 comments on commit 644706f

Please sign in to comment.