1CURLMOPT_CONTENT_LENGTH_PENAcLuTrYl__SmIuZlEt(i3_)seCtUoRpLtMOoPpTt_iCoOnNsTENT_LENGTH_PENALTY_SIZE(3)
2
3
4

NAME

6       CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE  -  size  threshold for pipelining
7       penalty
8

SYNOPSIS

10       #include <curl/curl.h>
11
12       CURLMcode      curl_multi_setopt(CURLM      *handle,      CURLMOPT_CON‐
13       TENT_LENGTH_PENALTY_SIZE, long size);
14

DESCRIPTION

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

DEFAULT

25       The default value is 0, which means that the size penalization is inac‐
26       tive.
27

PROTOCOLS

29       HTTP(S)
30

EXAMPLE

32       CURLM *m = curl_multi_init();
33       long maxlength = 10000;
34       curl_multi_setopt(m, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, maxlength);
35

AVAILABILITY

37       Added in 7.30.0
38

RETURN VALUE

40       Returns CURLM_OK if the option is supported,  and  CURLM_UNKNOWN_OPTION
41       if not.
42

SEE ALSO

44       CURLMOPT_PIPELINING(3), CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3),
45
46
47
48libcurl 7.66.0                  April 05C,UR2L0M1O9PT_CONTENT_LENGTH_PENALTY_SIZE(3)
Impressum