network: make request timeout configurable (#7696)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user