From 7ef144279bbb870c4dd3d8fea9f8095ff1750462 Mon Sep 17 00:00:00 2001 From: Ricardo-M-L <69202550+Ricardo-M-L@users.noreply.github.com> Date: Mon, 17 Aug 2026 13:22:21 +0800 Subject: [PATCH] fix(tcadp): add timeout to HTTP GET request for document download (#18336) --- deepdoc/parser/tcadp_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepdoc/parser/tcadp_parser.py b/deepdoc/parser/tcadp_parser.py index 37839eb87a..9815db941d 100644 --- a/deepdoc/parser/tcadp_parser.py +++ b/deepdoc/parser/tcadp_parser.py @@ -178,7 +178,7 @@ class TencentCloudAPIClient: filename = f"tcadp_result_{timestamp}.zip" file_path = os.path.join(output_dir, filename) - with requests.get(download_url, stream=True) as response: + with requests.get(download_url, stream=True, timeout=300) as response: response.raise_for_status() with open(file_path, "wb") as f: response.raw.decode_content = True