back-off tracker hostname looksups resulting in NXDOMAIN

This commit is contained in:
arvidn 2020-01-09 16:08:08 +01:00 committed by Arvid Norberg
parent 5e4686c30f
commit 94d90ce96f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* back-off tracker hostname looksups resulting in NXDOMAIN
* lower SOCKS5 UDP keepalive timeout
* fix external IP voting for multi-homed DHT nodes
* deprecate broadcast_lsd setting. Just use multicast

View File

@ -10984,9 +10984,13 @@ bool is_downloading_state(int const st)
if (aep != ae->endpoints.end())
{
// if we can't find the hostname, the tracker is probably
// out of service. Wait a while before trying it again
seconds32 const extra_delay = (ec == boost::asio::error::host_not_found)
? hours(6) : hours(0);
local_endpoint = aep->local_endpoint;
aep->failed(settings().get_int(settings_pack::tracker_backoff)
, retry_interval);
, std::max(retry_interval, extra_delay));
aep->last_error = ec;
aep->message = msg;
fails = aep->fails;