From b81095e301dfbf6d8b42ba3d6f29a09b2b1eac05 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Sun, 30 Jun 2024 16:16:21 +0800 Subject: [PATCH] =?UTF-8?q?misc:=E4=BF=AE=E6=94=B9=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E6=97=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Womsxd <45663319+Womsxd@users.noreply.github.com> --- request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request.py b/request.py index f41bcba..ca8f591 100644 --- a/request.py +++ b/request.py @@ -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