Code

Work around http-fetch built with cURL 7.16.0
authorJunio C Hamano <junkio@cox.net>
Wed, 27 Dec 2006 21:59:26 +0000 (13:59 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 28 Dec 2006 00:44:30 +0000 (16:44 -0800)
It appears that curl_easy_duphandle() from libcurl 7.16.0
returns a curl session handle which fails GOOD_MULTI_HANDLE()
check in curl_multi_add_handle().  This causes fetch_ref() to
fail because start_active_slot() cannot start the request.

For now, check for 7.16.0 to work this issue around.

Signed-off-by: Junio C Hamano <junkio@cox.net>
http.h

diff --git a/http.h b/http.h
index 6e12e416889503553ae502be31b2e9ed9e7dc4dd..324fcf4f5482dc67c3f68df0be30fb0aa210401e 100644 (file)
--- a/http.h
+++ b/http.h
@@ -18,7 +18,7 @@
 #define curl_global_init(a) do { /* nothing */ } while(0)
 #endif
 
-#if LIBCURL_VERSION_NUM < 0x070c04
+#if (LIBCURL_VERSION_NUM < 0x070c04) || (LIBCURL_VERSION_NUM == 0x071000)
 #define NO_CURL_EASY_DUPHANDLE
 #endif