From 3c46cc4fdd91f9f07a298318952dfbe557977d86 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 9 Mar 2022 20:16:18 -0300 Subject: [PATCH] expire connection id quicker as some trackers have it set low --- lbry/torrent/tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/torrent/tracker.py b/lbry/torrent/tracker.py index 9a6e98b6f..3b1e7d0a1 100644 --- a/lbry/torrent/tracker.py +++ b/lbry/torrent/tracker.py @@ -9,7 +9,7 @@ from lbry.utils import resolve_host, async_timed_cache, cache_concurrent from lbry.wallet.stream import StreamController log = logging.getLogger(__name__) -CONNECTION_EXPIRES_AFTER_SECONDS = 360 +CONNECTION_EXPIRES_AFTER_SECONDS = 50 # see: http://bittorrent.org/beps/bep_0015.html and http://xbtt.sourceforge.net/udp_tracker_protocol.html ConnectRequest = namedtuple("ConnectRequest", ["connection_id", "action", "transaction_id"]) ConnectResponse = namedtuple("ConnectResponse", ["action", "transaction_id", "connection_id"])