Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. You can instead view this document in the latest official manual.
CURLMOPT_MAXCONNECTS(3) | curl_multi_setopt options | CURLMOPT_MAXCONNECTS(3) |
NAME
CURLMOPT_MAXCONNECTS - set size of connection cacheSYNOPSIS
#include <curl/curl.h>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),September 23, 2018 | libcurl 7.69.0 |