1CURLMOPT_CHUNK_LENGTH_PENALTcYu_rSlI_ZmEu(l3t)i_setoCpUtRLoMpOtPiTo_nCsHUNK_LENGTH_PENALTY_SIZE(3)
2
3
4

NAME

6       CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE  -  chunk length threshold for pipe‐
7       lining
8

SYNOPSIS

10       #include <curl/curl.h>
11
12       CURLMcode        curl_multi_setopt(CURLM         *handle,         CURL‐
13       MOPT_CHUNK_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 chunked (Transfer-encoding: chunked) request with a
18       current chunk length larger than CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3),
19       that pipeline will not be considered for additional requests,  even  if
20       it is shorter than CURLMOPT_MAX_PIPELINE_LENGTH(3).
21

DEFAULT

23       The default value is 0, which means that the penalization is inactive.
24

PROTOCOLS

26       HTTP(S)
27

EXAMPLE

29       CURLM *m = curl_multi_init();
30       long maxchunk = 10000;
31       curl_multi_setopt(m, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, maxchunk);
32

AVAILABILITY

34       Added in 7.30.0
35

RETURN VALUE

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

SEE ALSO

41       CURLMOPT_PIPELINING(3), CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3),  CURL‐
42       MOPT_MAX_PIPELINE_LENGTH(3),
43
44
45
46libcurl 7.61.1                   May 27, 2C0U1R7LMOPT_CHUNK_LENGTH_PENALTY_SIZE(3)
Impressum