commit 1110f13c62c7911e4e07c907594fa01e03088bcd
parent 9b4e490e3cffe07c0f5a5e373b0834c6915baac1
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 18 Apr 2019 23:05:35 +0200
network: allow longer timeouts in _run_new_interface
On Windows box with weird networking setup (VPN, no IPv6, many DNS nameservers
but only some working well), the previous timeouts were too low: they were
reached due to DNS resolution.
related: #4421
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/electrum/network.py b/electrum/network.py
@@ -734,7 +734,8 @@ class Network(PrintError):
@log_exceptions
async def _run_new_interface(self, server):
interface = Interface(self, server, self.proxy)
- timeout = self.get_network_timeout_seconds(NetworkTimeout.Urgent)
+ # note: using longer timeouts here as DNS can sometimes be slow!
+ timeout = self.get_network_timeout_seconds(NetworkTimeout.Generic)
try:
await asyncio.wait_for(interface.ready, timeout)
except BaseException as e: