From df751949a48297f63dd98951700e77a8775d4fae Mon Sep 17 00:00:00 2001 From: SimplifiedPrivacy Date: Sun, 1 Nov 2026 19:54:31 -0500 Subject: [PATCH] Increase the timeouts --- core/services/networking/general_connection_tools/ip.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/services/networking/general_connection_tools/ip.py b/core/services/networking/general_connection_tools/ip.py index 0fb0de9..557124f 100644 --- a/core/services/networking/general_connection_tools/ip.py +++ b/core/services/networking/general_connection_tools/ip.py @@ -54,7 +54,7 @@ def is_dns_problem_worker(url: str, queue: multiprocessing.Queue): def test(connection_observer: Optional[ConnectionObserver], port: Optional[int] = None) -> Result: endpoint_list = list(API_ENDPOINT_FORMATS.keys())[:MAX_ATTEMPTS] start_time = time.time() - total_budget = 5.0 + total_budget = 6.0 # 1. DNS PRE-FLIGHT (Using Processes, not Threads) if port is None: @@ -67,7 +67,7 @@ def test(connection_observer: Optional[ConnectionObserver], port: Optional[int] processes.append(p) any_resolved = False - dns_timeout = 5 + dns_timeout = 6 try: # Wait for the first successful resolution @@ -94,11 +94,6 @@ def test(connection_observer: Optional[ConnectionObserver], port: Optional[int] # 2. HTTP REQUEST PHASE (Using Daemon Threads) transport = None if port: - # transport = httpx_socks.ProxyTransport( - # proxy_type=ProxyType.SOCKS5, - # proxy_host="127.0.0.1", - # proxy_port=port, - # ) transport = httpx_socks.SyncProxyTransport( proxy_type=ProxyType.SOCKS5, proxy_host="127.0.0.1",