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       Pass  a  long  with  a size in bytes. If a pipelined connection is cur‐
17       rently processing a request with  a  Content-Length  larger  than  this
18       CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3), that pipeline will then not be
19       considered for additional requests, even if it is  shorter  than  CURL‐
20       MOPT_MAX_PIPELINE_LENGTH(3).
21

DEFAULT

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

PROTOCOLS

27       HTTP(S)
28

EXAMPLE

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

AVAILABILITY

35       Added in 7.30.0
36

RETURN VALUE

38       Returns CURLM_OK if the option is supported,  and  CURLM_UNKNOWN_OPTION
39       if not.
40

SEE ALSO

42       CURLMOPT_PIPELINING(3), CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3),
43
44
45
46libcurl 7.64.0                   May 27,CU2R0L1M7OPT_CONTENT_LENGTH_PENALTY_SIZE(3)
Impressum