GNURLMOPT...NALTY_SIZE(3)
π NAME π
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE β chunk length threshold for pipelining, bestie β¨
Okay so this is the <GNURLMOPT...NALTY_SIZE(3)> page from the curl_multi_setopt options manual set, and we are gonna get into it π
π¦ SYNOPSIS π¦
The whole vibe check:
#include <gnurl/curl.h>
CURLMcode curl_multi_setopt(CURLM *handle,
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, long size);
πΈ DESCRIPTION πΈ
π¨ Big caveat first: no function since pipelining was removed in 7.62.0.
You pass a long with a size in bytes. If a pipelined connection is currently processing a chunked (Transfer-encoding: chunked) request with a current chunk length larger than CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3), that pipeline will not be considered for additional requests, even if it is shorter than CURLMOPT_MAX_PIPELINE_LENGTH(3).
Like, it's giving "this pipeline is on thin ice" energy πβ¨
π DEFAULT π
The default value is 0, which means that the penalization is inactive. So by default, no penalizing is happening, periodt π
π¦ PROTOCOLS π¦
HTTP(S) β that's the whole list, bestie π
π EXAMPLE π
Copy-paste main character energy:
CURLM *m = curl_multi_init();
long maxchunk = 10000;
curl_multi_setopt(m, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, maxchunk);
β AVAILABILITY β
Added in 7.30.0 β iconic, honestly π
π₯ RETURN VALUE π₯
Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION if not. That's it, no cap π«Ά
π SEE ALSO π
kisses bestie π this page was brought to you by libcurl 7.39.0, dated 4 Nov 2014, and it's literally called GNURLMOPT...NALTY_SIZE(3) πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms