forked from premiere/premiere-libtorrent
retry web seeds when name lookup fails instead of discarding them
This commit is contained in:
parent
1e655d5fac
commit
aa02e36327
|
@ -2873,8 +2873,8 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
if (m_ses.m_alerts.should_post<url_seed_alert>())
|
if (m_ses.m_alerts.should_post<url_seed_alert>())
|
||||||
{
|
{
|
||||||
char msg[200];
|
char msg[400];
|
||||||
snprintf(msg, 200, "HTTP seed hostname lookup failed: %s", e.message().c_str());
|
snprintf(msg, sizeof(msg), "HTTP seed hostname lookup failed: %s", e.message().c_str());
|
||||||
m_ses.m_alerts.post_alert(
|
m_ses.m_alerts.post_alert(
|
||||||
url_seed_alert(get_handle(), web.url, msg));
|
url_seed_alert(get_handle(), web.url, msg));
|
||||||
}
|
}
|
||||||
|
@ -2882,9 +2882,8 @@ namespace libtorrent
|
||||||
(*m_ses.m_logger) << " ** HOSTNAME LOOKUP FAILED!**: " << web.url << "\n";
|
(*m_ses.m_logger) << " ** HOSTNAME LOOKUP FAILED!**: " << web.url << "\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// the name lookup failed for the http host. Don't try
|
// unavailable, retry in 30 minutes
|
||||||
// this host again
|
retry_web_seed(web.url, web.type, 60 * 30);
|
||||||
m_web_seeds.erase(web);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue