mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +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
|
@ -416,8 +416,8 @@ void ClientMediaDownloader::startRemoteMediaTransfers()
|
|||
fetch_request.url = url;
|
||||
fetch_request.caller = m_httpfetch_caller;
|
||||
fetch_request.request_id = m_httpfetch_next_id;
|
||||
fetch_request.timeout =
|
||||
g_settings->getS32("curl_file_download_timeout");
|
||||
fetch_request.timeout = std::max(MIN_HTTPFETCH_TIMEOUT,
|
||||
(long)g_settings->getS32("curl_file_download_timeout"));
|
||||
httpfetch_async(fetch_request);
|
||||
|
||||
m_remote_file_transfers.insert(std::make_pair(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue