1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Enforce minimum for curl(_file_download)_timeout

This commit is contained in:
sfan5 2023-09-26 16:00:16 +02:00
parent ac8a9f9502
commit 9ec40ce8e9
5 changed files with 14 additions and 5 deletions

View file

@ -47,6 +47,7 @@ HTTPFetchRequest::HTTPFetchRequest() :
connect_timeout(10 * 1000),
useragent(std::string(PROJECT_NAME_C "/") + g_version_hash + " (" + porting::get_sysinfo() + ")")
{
timeout = std::max(timeout, MIN_HTTPFETCH_TIMEOUT_INTERACTIVE);
}