GNURLMOPT_MAX_CONCURRENT_STREAMS(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

🌟 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