1
0
Fork 0
forked from lthn/blockchain

pre-downloading: increase timeout and attempt count

This commit is contained in:
sowle 2020-05-13 10:27:04 +03:00
parent f6d99e39bb
commit bc6b951099
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -88,7 +88,7 @@ namespace tools
};
tools::create_directories_if_necessary(working_folder);
r = cl.download_and_unzip(cb, downloading_file_path, url, 1000 /* timout */, "GET", std::string(), 3 /* fails count */);
r = cl.download_and_unzip(cb, downloading_file_path, url, 5000 /* timout */, "GET", std::string(), 30 /* fails count */);
if (!r)
{
LOG_PRINT_RED("Download failed", LOG_LEVEL_0);