From 92716d2ef13428fa3e9419cd52766c3481138e87 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sat, 5 Oct 2024 08:40:29 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=BD=91=E7=BB=9C=E6=94=B6=E9=9B=86.p?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/网络收集.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/网络收集.py b/py/网络收集.py index 0203565..b72b479 100644 --- a/py/网络收集.py +++ b/py/网络收集.py @@ -550,7 +550,7 @@ def test_connectivity_and_download(url, initial_timeout=1, retry_timeout=1): if response.status_code == 200: start_time = time.time() while time.time() - start_time < initial_timeout: - chunk = response.raw.read(512) # 尝试下载1KB数据 + chunk = response.raw.read(51200) # 尝试下载1KB数据 if chunk: return True # 成功下载数据 except requests.RequestException as e: