1CURLMOPT_CONTENT_LENGTH_PENAcLuTrYl__SmIuZlEt(i3_)seCtUoRpLtMOoPpTt_iCoOnNsTENT_LENGTH_PENALTY_SIZE(3)
2
3
4
6 CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE - size threshold for pipelining
7 penalty
8
10 #include <curl/curl.h>
11
12 CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_CONTENT_LENGTH_PEN‐
13 ALTY_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 request with a Content-Length larger than this
20 CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3), that pipeline will then not be
21 considered for additional requests, even if it is shorter than CURL‐
22 MOPT_MAX_PIPELINE_LENGTH(3).
23
25 The default value is 0, which means that the size penalization is inac‐
26 tive.
27
29 HTTP(S)
30
32 CURLM *m = curl_multi_init();
33 long maxlength = 10000;
34 curl_multi_setopt(m, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, maxlength);
35
37 Added in 7.30.0
38
40 Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION
41 if not.
42
44 CURLMOPT_PIPELINING(3), CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3),
45
46
47
48libcurl 7.76.1 NovemberC0U4R,LM2O0P2T0_CONTENT_LENGTH_PENALTY_SIZE(3)