Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
CURLMOPT_MAXCONNECTS(3) | curl_multi_setopt options | 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 will be used as the maximum amount of simultaneously open connections that libcurl may keep in its connection cache after completed use. By default libcurl will enlarge the size for each added easy handle to make it fit 4 times the number of added easy handles.DEFAULT
See DESCRIPTIONPROTOCOLS
AllEXAMPLE
CURLM *m = curl_multi_init();
/* only keep 10 connections in the cache */
curl_multi_setopt(m, CURLMOPT_MAXCONNECTS, 10L);
AVAILABILITY
Added in 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),May 17, 2022 | libcurl 7.84.0 |