Use settings_pack::urlseed_wait_retry for default retry with http seeds. (#2948)

Update documentation
This commit is contained in:
TheOriginalWinCat 2018-04-21 17:36:56 +01:00 committed by Arvid Norberg
parent 4e24c05426
commit bcb9e4546f
2 changed files with 4 additions and 3 deletions

View File

@ -806,13 +806,14 @@ namespace libtorrent {
// reliable.
urlseed_timeout,
// controls the pipelining size of url-seeds. i.e. the number of HTTP
// controls the pipelining size of url and http seeds. i.e. the number of HTTP
// request to keep outstanding before waiting for the first one to
// complete. It's common for web servers to limit this to a relatively
// low number, like 5
urlseed_pipeline_size,
// time to wait until a new retry of a web seed takes place
// number of seconds until a new retry of a url-seed takes place.
// Default retry value for http-seeds that don't provide a valid 'retry-after' header.
urlseed_wait_retry,
// sets the upper limit on the total number of files this session will

View File

@ -275,7 +275,7 @@ namespace libtorrent {
if (!is_ok_status(m_parser.status_code()))
{
auto const retry_time = value_or(m_parser.header_duration("retry-after")
, minutes32(5));
, seconds32(m_settings.get_int(settings_pack::urlseed_wait_retry)));
// temporarily unavailable, retry later
t->retry_web_seed(this, retry_time);