setting CURLMOPT_MAX_HOST_CONNECTIONS just in case

This commit is contained in:
Fufu Fang 2019-04-28 01:24:35 +01:00
parent 74878cfcfe
commit f1c7e6e97e
1 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,8 @@ LinkTable *network_init(const char *url)
}
curl_multi_setopt(curl_multi, CURLMOPT_MAX_TOTAL_CONNECTIONS,
NETWORK_CONFIG.max_conns);
curl_multi_setopt(curl_multi, CURLMOPT_MAX_HOST_CONNECTIONS,
NETWORK_CONFIG.max_conns);
curl_multi_setopt(curl_multi, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
/* ------------ Initialise locks ---------*/