From b073ce2fa50a0e539df45692abc29270d47c2bbe Mon Sep 17 00:00:00 2001 From: SimplifiedPrivacy Date: Mon, 2 Nov 2026 14:57:58 -0500 Subject: [PATCH] tweak, increase timeout for async --- core/services/networking/general_connection_tools/ip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/services/networking/general_connection_tools/ip.py b/core/services/networking/general_connection_tools/ip.py index 1b04380..78c91d4 100644 --- a/core/services/networking/general_connection_tools/ip.py +++ b/core/services/networking/general_connection_tools/ip.py @@ -55,8 +55,8 @@ async def attempt_request_async(url: str, port: Optional[int]) -> Optional[str]: proxy = f"socks5h://127.0.0.1:{port}" if port else None try: - # timeout=3.0 strictly enforces the read/connect timeout for DNS as well with 5h - async with httpx.AsyncClient(proxy=proxy, http2=False, timeout=3.0) as client: + # timeout strictly enforces the read/connect timeout for DNS as well with 5h + async with httpx.AsyncClient(proxy=proxy, http2=False, timeout=5.0) as client: raw_response = await client.get(url) filtered_response = classify_response(raw_response)