forked from premiere/premiere-libtorrent
back-off tracker hostname looksups resulting in NXDOMAIN
This commit is contained in:
parent
5e4686c30f
commit
94d90ce96f
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue