Browse Source

network: make request timeout configurable (#7696)

patch-4
Federico 3 years ago
committed by GitHub
parent
commit
fcf54432f7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      electrum/network.py

2
electrum/network.py

@ -759,6 +759,8 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):
util.trigger_callback('network_updated')
def get_network_timeout_seconds(self, request_type=NetworkTimeout.Generic) -> int:
if self.config.get('network_timeout', None):
return int(self.config.get('network_timeout'))
if self.oneserver and not self.auto_connect:
return request_type.MOST_RELAXED
if self.proxy:

Loading…
Cancel
Save