Increase the timeouts
This commit is contained in:
parent
039c162976
commit
df751949a4
1 changed files with 2 additions and 7 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue