Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
CURLOPT_PIPEWAIT(3) | Library Functions Manual | CURLOPT_PIPEWAIT(3) |
NAME
CURLOPT_PIPEWAIT - wait for multiplexingSYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PIPEWAIT, long wait);
DESCRIPTION
Set wait to 1L to tell libcurl to prefer to wait for a connection to confirm or deny that it can do multiplexing before continuing.DEFAULT
0 (off)PROTOCOLS
This functionality affects http onlyEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PIPEWAIT, 1L);
/* now add this easy handle to the multi handle */
}
}
AVAILABILITY
Added in curl 7.43.0RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.SEE ALSO
CURLMOPT_MAX_HOST_CONNECTIONS(3), CURLMOPT_PIPELINING(3), CURLOPT_FORBID_REUSE(3), CURLOPT_FRESH_CONNECT(3)2024-12-28 | libcurl |