From: Eric Wong Date: Tue, 13 Sep 2016 00:25:55 GMT Subject: [RFC 1/3] http: warn on curl_multi_add_handle failures Message-ID: <20160913002557.10671-2-e@80x24.org> In-Reply-To: <20160913002557.10671-1-e@80x24.org> This will be useful for tracking down curl usage errors. Signed-off-by: Eric Wong --- http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http.c b/http.c index cd40b01..cac5db9 100644 --- a/http.c +++ b/http.c @@ -1022,6 +1022,8 @@ int start_active_slot(struct active_request_slot *slot) if (curlm_result != CURLM_OK && curlm_result != CURLM_CALL_MULTI_PERFORM) { + warning("curl_multi_add_handle failed: %s", + curl_multi_strerror(curlm_result)); active_requests--; slot->in_use = 0; return 0; -- EW