Skip to content

Commit

Permalink
dev(narugo): dont retry one 413 error code
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Aug 9, 2024
1 parent 9d07268 commit ada96de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hfutils/utils/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_requests_session(max_retries: int = 5, timeout: int = DEFAULT_TIMEOUT, v
session = session or requests.session()
retries = Retry(
total=max_retries, backoff_factor=1,
status_forcelist=[408, 413, 429, 500, 501, 502, 503, 504, 505, 506, 507, 509, 510, 511],
status_forcelist=[408, 429, 500, 501, 502, 503, 504, 505, 506, 507, 509, 510, 511],
allowed_methods=["HEAD", "GET", "POST", "PUT", "DELETE", "OPTIONS", "TRACE"],
)
adapter = TimeoutHTTPAdapter(max_retries=retries, timeout=timeout, pool_connections=32, pool_maxsize=32)
Expand Down

0 comments on commit ada96de

Please sign in to comment.