Skip to content

Commit 9f1b588

Browse files
Eric Wonggitster
authored andcommitted
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>
1 parent e465796 commit 9f1b588

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

http.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ int start_active_slot(struct active_request_slot *slot)
709709

710710
if (curlm_result != CURLM_OK &&
711711
curlm_result != CURLM_CALL_MULTI_PERFORM) {
712+
warning("curl_multi_add_handle failed: %s",
713+
curl_multi_strerror(curlm_result));
712714
active_requests--;
713715
slot->in_use = 0;
714716
return 0;

0 commit comments

Comments
 (0)