From e87e76e2dc108efb1cae87df496416f49c55fca0 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 4 Apr 2013 10:33:39 +0200 Subject: 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 --- lib/easy.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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); -- cgit v1.2.3