From 435f1eb6cc969e4f9024607c9ca82d2225060853 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Aug 2024 10:28:37 +0200 Subject: [PATCH] lib/curl/Multi: remove default timeout value -1 is an illegal value and leads to CURLM_BAD_FUNCTION_ARGUMENT. Our API shouldn't imply this value. --- src/lib/curl/Multi.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/curl/Multi.hxx b/src/lib/curl/Multi.hxx index 116037f72..92ebe8b46 100644 --- a/src/lib/curl/Multi.hxx +++ b/src/lib/curl/Multi.hxx @@ -98,7 +98,7 @@ public: return running_handles; } - unsigned Wait(int timeout=-1) { + unsigned Wait(int timeout) { int numfds; auto code = curl_multi_wait(handle, nullptr, 0, timeout, &numfds);