Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
libertyzhu committed Dec 26, 2023
1 parent 554d458 commit 07e1fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcloud_cos/cos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def send_request(self, method, url, bucket, timeout=30, cos_request=True, ci_req
logger.exception('url:%s, retry_time:%d exception:%s' % (url, j, str(e)))
if j < self._retry and (isinstance(e, ConnectionError) or isinstance(e, Timeout)): # 只重试网络错误
if client_can_retry(file_position, **kwargs):
if not 'x-cos-request-id' in res.headers and not domain_switched and self._conf._auto_switch_domain_on_retry and self._conf._ip is None:
if not domain_switched and self._conf._auto_switch_domain_on_retry and self._conf._ip is None:
url = switch_hostname_for_url(url)
domain_switched = True
continue
Expand Down

0 comments on commit 07e1fd3

Please sign in to comment.