Skip to content

Commit

Permalink
添加连接错误重试
Browse files Browse the repository at this point in the history
  • Loading branch information
auqhjjqdo committed May 29, 2023
1 parent 7eccd54 commit 54001fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def get_client(self):
http2=True,
timeout=self.interval,
proxies=self.proxy,
transport=httpx.AsyncHTTPTransport(retries=5),
limits=httpx.Limits(max_keepalive_connections=100, keepalive_expiry=self.interval * 2),
headers=self.headers,
cookies=self.cookies
Expand Down

0 comments on commit 54001fe

Please sign in to comment.