1CURLMOPT_MAX_CONCURRENT_STREcAuMrSl(_3m)ulti_setoptCoUpRtLiMoOnPsT_MAX_CONCURRENT_STREAMS(3)
2
3
4

NAME

6       CURLMOPT_MAX_CONCURRENT_STREAMS - set max concurrent streams for http2
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_MAX_CONCURRENT_STREAMS,
12                                   long max);
13

DESCRIPTION

15       Pass a long indicating the max. The set number will be used as the max‐
16       imum number of concurrent streams for a connections that libcurl should
17       support on connections done using HTTP/2.
18
19       Valid values range from 1 to 2147483647 (2^31 - 1) and defaults to 100.
20       The value passed here would be honoured based on other system resources
21       properties.
22

DEFAULT

24       100
25

PROTOCOLS

27       All
28

EXAMPLE

30         CURLM *m = curl_multi_init();
31         /* max concurrent streams 200 */
32         curl_multi_setopt(m, CURLMOPT_MAX_CONCURRENT_STREAMS, 200L);
33

AVAILABILITY

35       Added in 7.67.0
36

RETURN VALUE

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

SEE ALSO

42       CURLOPT_MAXCONNECTS(3), CURLMOPT_MAXCONNECTS(3),
43
44
45
46libcurl 7.67.0                    06 Nov 2019CURLMOPT_MAX_CONCURRENT_STREAMS(3)
Impressum