Skip to content

Commit

Permalink
http-fetch: Disable use of curl multi support for libcurl < 7.16.
Browse files Browse the repository at this point in the history
curl_multi_remove_handle() is broken in libcurl < 7.16, in that it
doesn't correctly update the active handles count when a request is
aborted. This causes the transfer to hang forever waiting for the
handle count to become less than the number of active requests.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
julliard authored and Junio C Hamano committed May 4, 2007
1 parent 7a33b0b commit 9cf0430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.h
Expand Up @@ -6,7 +6,7 @@
#include <curl/curl.h>
#include <curl/easy.h>

#if LIBCURL_VERSION_NUM >= 0x070908
#if LIBCURL_VERSION_NUM >= 0x071000
#define USE_CURL_MULTI
#define DEFAULT_MAX_REQUESTS 5
#endif
Expand Down

0 comments on commit 9cf0430

Please sign in to comment.