http: warn on curl_multi_add_handle failures

This will be useful for tracking down curl usage errors. Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Eric Wong committed Sep 13, 2016 at 00:25 UTC 9f1b58842a44e8f0dc8fb4a447449cb31957b4bf
1 file changed +2
http.c
+2
@@ -709,6 +709,8 @@ int start_active_slot(struct active_request_slot *slot)
709
710 if (curlm_result != CURLM_OK &&
711 curlm_result != CURLM_CALL_MULTI_PERFORM) {
712 + warning("curl_multi_add_handle failed: %s",
713 + curl_multi_strerror(curlm_result));
714 active_requests--;
715 slot->in_use = 0;
716 return 0;