From 30689bbf8d4462b63f338b8e3dc81e87f87355f3 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 22 Jan 2019 13:02:50 -0500 Subject: [PATCH] update/add config remove the following settings: peer_search_timeout sd_download_timeout run_reflector_server download_mirrors pointtrader_server add the following settings: blob_download_timeout peer_connect_timeout node_rpc_timeout --- lbrynet/conf.py | 10 +++++----- lbrynet/dht/constants.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lbrynet/conf.py b/lbrynet/conf.py index 0adb1bb7d..f1d1b99f9 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -8,7 +8,7 @@ import yaml from argparse import ArgumentParser from contextlib import contextmanager from appdirs import user_data_dir, user_config_dir -from lbrynet.p2p.Error import InvalidCurrencyError +from lbrynet.error import InvalidCurrencyError log = logging.getLogger(__name__) @@ -407,10 +407,10 @@ class Config(CLIConfig): data_rate = Float("points/megabyte", .0001) delete_blobs_on_remove = Toggle("", True) dht_node_port = Integer("", 4444) - download_timeout = Integer("", 180) - download_mirrors = Servers("", [ - ('blobs.lbry.io', 80) - ]) + download_timeout = Float("", 30.0) + blob_download_timeout = Float("", 20.0) + peer_connect_timeout = Float("", 3.0) + node_rpc_timeout = Float("", constants.rpc_timeout) is_generous_host = Toggle("", True) announce_head_blobs_only = Toggle("", True) concurrent_announcers = Integer("", 10) diff --git a/lbrynet/dht/constants.py b/lbrynet/dht/constants.py index 0dd3bd746..619b98668 100644 --- a/lbrynet/dht/constants.py +++ b/lbrynet/dht/constants.py @@ -10,7 +10,7 @@ replacement_cache_size = 8 rpc_timeout = 5.0 rpc_attempts = 5 rpc_attempts_pruning_window = 600 -iterative_lookup_delay = rpc_timeout / 2.0 +iterative_lookup_delay = rpc_timeout / 2.0 # TODO: use config val / 2 if rpc timeout is provided refresh_interval = 3600 # 1 hour replicate_interval = refresh_interval data_expiration = 86400 # 24 hours