1CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3)libcurClURLMOPT_CHUNK_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, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE,
13                                   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 transfer in a pipeline  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

DEFAULT

25       The default value is 0, which means that the penalization is inactive.
26

PROTOCOLS

28       HTTP(S)
29

EXAMPLE

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

AVAILABILITY

36       Added in 7.30.0
37

RETURN VALUE

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

SEE ALSO

43       CURLMOPT_PIPELINING(3),  CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE(3), CURL‐
44       MOPT_MAX_PIPELINE_LENGTH(3),
45
46
47
48ibcurl 8.2.1                    April 26,C2U0R2L3MOPT_CHUNK_LENGTH_PENALTY_SIZE(3)
Impressum