1CURLMOPT_CHUNK_LENGTH_PENALTcYu_rSlI_ZmEu(l3t)i_setoCpUtRLoMpOtPiTo_nCsHUNK_LENGTH_PENALTY_SIZE(3)
2
3
4
6 CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE - chunk length threshold for pipe‐
7 lining
8
10 #include <curl/curl.h>
11
12 CURLMcode curl_multi_setopt(CURLM *handle, CURL‐
13 MOPT_CHUNK_LENGTH_PENALTY_SIZE, long size);
14
16 No function since pipelining was removed in 7.62.0.
17
18 Pass a long with a size in bytes. If a pipelined connection is cur‐
19 rently processing a chunked (Transfer-encoding: chunked) request with a
20 current chunk length larger than CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3),
21 that pipeline will not be considered for additional requests, even if
22 it is shorter than CURLMOPT_MAX_PIPELINE_LENGTH(3).
23
25 The default value is 0, which means that the penalization is inactive.
26
28 HTTP(S)
29
31 CURLM *m = curl_multi_init();
32 long maxchunk = 10000;
33 curl_multi_setopt(m, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, maxchunk);
34
36 Added in 7.30.0
37
39 Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION
40 if not.
41
43 CURLMOPT_PIPELINING(3), CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3), CURL‐
44 MOPT_MAX_PIPELINE_LENGTH(3),
45
46
47
48libcurl 7.71.1 April 05,C2U0R1L9MOPT_CHUNK_LENGTH_PENALTY_SIZE(3)