GNURLMOPT_MAX_CONCURRENT_STREAMS(3)
π GNURLMOPT_MAX_CONCURRENT_STREAMS(3) β Library Functions Manual π
okay bestie, quick vibe check: this is the Library Functions Manual page for GNURLMOPT_MAX_CONCURRENT_STREAMS(3). The header line in the wild is a little gremlin β GNURLMOPT_MAX_CONCURRENT(3) with Library Functions Manual squished in the middle β but the page itself is all about GNURLMOPT_MAX_CONCURRENT_STREAMS, and we're keeping every fact exactly where it belongs. π
π NAME π
CURLMOPT_MAX_CONCURRENT_STREAMS, curl_multi_setopt β set max concurrent streams for http2. That's the whole assignment, and she ate. β¨
π¦ LIBRARY π¦
library βlibgnurlβ β yes, with the fancy quotes, we're not editing the source material's accessories. π«Ά
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLMcode
curl_multi_setopt(CURLM *handle, CURLMOPT_MAX_CONCURRENT_STREAMS,
long max);
πΈ DESCRIPTION πΈ
Pass a long indicating the max. That number is what gets used as the maximum number of concurrent streams for a connections that libcurl should support on connections done using HTTP/2. (The original really says "a connections" β we love a grammatical side quest, but the meaning is clear: it's the cap for concurrent streams on those HTTP/2 connections.)
Valid values range from 1 to 2147483647 (2^31 - 1), and it defaults to 100. The value passed here would be honoured based on other system resources properties β so think of it as the vibe you're requesting, not a solo main-character decree that ignores the rest of the system. β¨
π DEFAULT π
100
π PROTOCOLS π
All. Every protocol is invited to the function. π
π EXAMPLES π
CURLM *m = curl_multi_init();
/* max concurrent streams 200 */
curl_multi_setopt(m, CURLMOPT_MAX_CONCURRENT_STREAMS, 200L);
π°οΈ HISTORY π°οΈ
CURLMOPT_MAX_CONCURRENT_STREAMS first appeared in in curl 7.67.0. Yes, the manpage says "in in" β not me pointing out the double-tap, but facts are sacred and we're keeping it. π
π«Ά RETURN VALUES π«Ά
Returns CURLM_OK if the option is supported, and CURLM_UNKNOWN_OPTION if not. Clean, simple, no plot twist. π
π SEE ALSO π
and that's the page, bestie. source/version: Debian; date: November 06; page name: GNURLMOPT_MAX_CONCURRENT_STREAMS(3). signed off with glitter and zero edits to the technical tea. πππ¦
π¦ 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