Skip to content

Commit

Permalink
misc:修改超时时长
Browse files Browse the repository at this point in the history
Signed-off-by: Womsxd <[email protected]>
  • Loading branch information
Womsxd committed Jun 30, 2024
1 parent d5a49f3 commit b81095e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def get_new_session(**kwargs):
# 优先使用httpx,在httpx无法使用的环境下使用requests
import httpx

http_client = httpx.Client(timeout=20, transport=httpx.HTTPTransport(retries=10), follow_redirects=True,
http_client = httpx.Client(timeout=30, transport=httpx.HTTPTransport(retries=10), follow_redirects=True,
**kwargs)
# 当openssl版本小于1.0.2的时候直接进行一个空请求让httpx报错
import tools
Expand Down

0 comments on commit b81095e

Please sign in to comment.