From d03ffc85a2b534955689757903a1e194aa0a6ec7 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 13 Jul 2023 18:51:17 +0200 Subject: [PATCH] allow more time to detect tor --- electrum/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/util.py b/electrum/util.py index 11b551848..b72873763 100644 --- a/electrum/util.py +++ b/electrum/util.py @@ -1642,7 +1642,7 @@ def detect_tor_socks_proxy() -> Optional[Tuple[str, int]]: def is_tor_socks_port(host: str, port: int) -> bool: try: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: - s.settimeout(0.1) + s.settimeout(1.0) s.connect((host, port)) # mimic "tor-resolve 0.0.0.0". # see https://github.com/spesmilo/electrum/issues/7317#issuecomment-1369281075