lib/curl/Global: remove lower bound on timeouts
This was a problem 9 years ago, and apparently, it has been fixed long ago.
This commit is contained in:
parent
a714bdb0ce
commit
4475b8ca04
|
@ -227,13 +227,6 @@ CurlGlobal::UpdateTimeout(long timeout_ms) noexcept
|
|||
return;
|
||||
}
|
||||
|
||||
if (timeout_ms < 10)
|
||||
/* CURL 7.21.1 likes to report "timeout=0", which
|
||||
means we're running in a busy loop. Quite a bad
|
||||
idea to waste so much CPU. Let's use a lower limit
|
||||
of 10ms. */
|
||||
timeout_ms = 10;
|
||||
|
||||
timeout_event.Schedule(std::chrono::milliseconds(timeout_ms));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue