mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
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
This commit is contained in:
parent
9b4e490e3c
commit
1110f13c62
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue