From: Eric Wong Date: Tue, 13 Sep 2016 00:25:55 +0000 (+0000) Subject: http: warn on curl_multi_add_handle failures X-Git-Tag: v2.10.1~18^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f1b58842a44e8f0dc8fb4a447449cb31957b4bf;p=thirdparty%2Fgit.git http: warn on curl_multi_add_handle failures This will be useful for tracking down curl usage errors. Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/http.c b/http.c index c29ce81ccc..d20e9c108b 100644 --- a/http.c +++ b/http.c @@ -709,6 +709,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;