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:
parent
ac8a9f9502
commit
9ec40ce8e9
5 changed files with 14 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue