From: Alexandre Julliard Date: Wed, 2 May 2007 12:53:23 +0000 (+0200) Subject: http-fetch: Disable use of curl multi support for libcurl < 7.16. X-Git-Tag: v1.5.2-rc2~5^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9cf04301b182c4c57d62ea63554d109db613f9d3;p=git.git http-fetch: Disable use of curl multi support for libcurl < 7.16. 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 Signed-off-by: Junio C Hamano --- diff --git a/http.h b/http.h index 324fcf4f5..69b6b667d 100644 --- a/http.h +++ b/http.h @@ -6,7 +6,7 @@ #include #include -#if LIBCURL_VERSION_NUM >= 0x070908 +#if LIBCURL_VERSION_NUM >= 0x071000 #define USE_CURL_MULTI #define DEFAULT_MAX_REQUESTS 5 #endif