summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-12-23 14:50:51 +0100
committerMax Kellermann <max@musicpd.org>2019-12-23 14:50:51 +0100
commit4475b8ca04b2798519d0f6eb68913c55cf3d1846 (patch)
tree19e67eea14297fb05a5d90ad26319a13b13140c5 /src
parenta714bdb0ce3ad43b827f0ffba009606bee1a6cdb (diff)
lib/curl/Global: remove lower bound on timeouts
This was a problem 9 years ago, and apparently, it has been fixed long ago.
Diffstat (limited to 'src')
-rw-r--r--src/lib/curl/Global.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/curl/Global.cxx b/src/lib/curl/Global.cxx
index 6f213c20d..f44b942af 100644
--- a/src/lib/curl/Global.cxx
+++ b/src/lib/curl/Global.cxx
@@ -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));
}