From 6c90c92df80341a27bf91836a3ec6cca3b262c09 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 2 Dec 2015 18:57:21 +0100 Subject: [PATCH] Fixed: Bug when CURLMOPT_MAX_HOST_CONNECTIONS is not supported --- code/nel/src/gui/group_html.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 7d451d561..24610f7eb 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -2087,14 +2087,14 @@ namespace NLGUI clearContext(); MultiCurl = curl_multi_init(); +#ifdef CURLMOPT_MAX_HOST_CONNECTIONS if (MultiCurl) { -#ifdef CURLMOPT_MAX_HOST_CONNECTIONS // added in libcurl 7.30.0 curl_multi_setopt(MultiCurl, CURLMOPT_MAX_HOST_CONNECTIONS, options.curlMaxConnections); -#endif curl_multi_setopt(MultiCurl, CURLMOPT_PIPELINING, 1); } +#endif RunningCurls = 0; _CurlWWW = NULL;