Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
CURLMOPT_MAXCONNECTS(3) | Library Functions Manual | CURLMOPT_MAXCONNECTS(3) |
NAME
CURLMOPT_MAXCONNECTS - size of connection cacheSYNOPSIS
#include <curl/curl.h>
CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_MAXCONNECTS, long max);
DESCRIPTION
Pass a long indicating the max. The set number is used as the maximum amount of simultaneously open connections that libcurl may keep in its connection cache after completed use. By default libcurl enlarges the size for each added easy handle to make it fit 4 times the number of added easy handles.DEFAULT
See DESCRIPTIONPROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURLM *m = curl_multi_init();
/* only keep 10 connections in the cache */
curl_multi_setopt(m, CURLMOPT_MAXCONNECTS, 10L);
}
AVAILABILITY
Added in curl 7.16.3RETURN VALUE
Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION if not.SEE ALSO
CURLMOPT_MAX_HOST_CONNECTIONS(3), CURLOPT_MAXCONNECTS(3)2024-11-23 | libcurl |