aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2013-04-04 10:33:39 +0200
committerLinus Nielsen Feltzing <linus@haxx.se>2013-04-04 10:33:39 +0200
commite87e76e2dc108efb1cae87df496416f49c55fca0 (patch)
treebaa0584ed1fc0c87d21b71f2c5e0530a1fb5bd1e /lib
parent984e20d6bb9d9f198132e64d9bc091b183353227 (diff)
easy: Fix the broken CURLOPT_MAXCONNECTS option
Copy the CURLOPT_MAXCONNECTS option to CURLMOPT_MAXCONNECTS in curl_easy_perform(). Bug: http://curl.haxx.se/bug/view.cgi?id=1212 Reported-by: Steven Gu
Diffstat (limited to 'lib')
-rw-r--r--lib/easy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 55144c7b9..6601d9b16 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -442,6 +442,9 @@ CURLcode curl_easy_perform(CURL *easy)
data->multi_easy = multi;
}
+ /* Copy the MAXCONNECTS option to the multi handle */
+ curl_multi_setopt(multi, CURLMOPT_MAXCONNECTS, data->set.maxconnects);
+
mcode = curl_multi_add_handle(multi, easy);
if(mcode) {
curl_multi_cleanup(multi);