mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-11 20:04:46 +00:00
Fixed: Bug when CURLMOPT_MAX_HOST_CONNECTIONS is not supported
This commit is contained in:
parent
9871e1604d
commit
6c90c92df8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue