Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. You can instead view this document in the latest official manual.
CURLOPT_MAXCONNECTS(3) | curl_easy_setopt options | CURLOPT_MAXCONNECTS(3) |
NAME
CURLOPT_MAXCONNECTS - maximum connection cache sizeSYNOPSIS
#include <curl/curl.h>DESCRIPTION
Pass a long. The set amount will be the maximum number of simultaneously open persistent connections that libcurl may cache in the pool associated with this handle. The default is 5, and there isn't much point in changing this value unless you are perfectly aware of how this works and changes libcurl's behaviour. This concerns connections using any of the protocols that support persistent connections.DEFAULT
5PROTOCOLS
MostEXAMPLE
CURL *curl = curl_easy_init(); if(curl) { CURLcode ret; curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); /* limit the connection cache for this handle to no more than 3 */ curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, 3L); ret = curl_easy_perform(curl); }
AVAILABILITY
AlwaysRETURN VALUE
Returns CURLE_OKSEE ALSO
CURLMOPT_MAXCONNECTS(3), CURLOPT_MAXREDIRS(3),May 30, 2017 | libcurl 7.69.0 |