CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE3
Chunk length threshold for pipelining
Usage
CURLMcode curl_multi_setopt(CURLM
*handle,
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE,
long size);
Overview
No function since pipelining was removed in 7.62.0.
Pass a long with a size in bytes. If a transfer in a pipeline is currently processing a chunked (Transfer-encoding: chunked) request with a current chunk length larger than CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3), that pipeline is not considered for additional requests, even if it is shorter than CURLMOPT_MAX_PIPELINE_LENGTH(3).
Default
The default value is 0, which means that the penalization is inactive.
Protocols
HTTP(S)
Examples
int main(void)
{
CURLM *m = curl_multi_init();
long maxchunk = 10000;
curl_multi_setopt(m, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, maxchunk);
}
Return value
Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION if not.
History
- macOS 26.5 to macOS 14.5: the text shown here
- macOS 14.4 to macOS 14.2
- macOS 14.1 to macOS 13.5
- macOS 13.4
- macOS 13.3
- macOS 13.2
- macOS 13.1
- macOS 13.0
- macOS 12.5 to macOS 12.3
- macOS 12.2 to macOS 12.0.1
- macOS 11.5 to macOS 10.15
- macOS 10.14.6 to macOS 10.12.6
- macOS 10.12.5 to macOS 10.12
- OS X 10.11.6 to OS X 10.10.5