quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

CURLMOPT_MAX_CONCURRENT_STREAMS.md (1247B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Title: CURLMOPT_MAX_CONCURRENT_STREAMS
      5 Section: 3
      6 Source: libcurl
      7 See-also:
      8   - CURLMOPT_MAXCONNECTS (3)
      9   - CURLOPT_MAXCONNECTS (3)
     10 Protocol:
     11   - HTTP
     12 Added-in: 7.67.0
     13 ---
     14 
     15 # NAME
     16 
     17 CURLMOPT_MAX_CONCURRENT_STREAMS - max concurrent streams for http2
     18 
     19 # SYNOPSIS
     20 
     21 ~~~c
     22 #include <curl/curl.h>
     23 
     24 CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_MAX_CONCURRENT_STREAMS,
     25                             long max);
     26 ~~~
     27 
     28 # DESCRIPTION
     29 
     30 Pass a long indicating the **max**. The set number is used as the maximum
     31 number of concurrent streams libcurl should support on connections done using
     32 HTTP/2 or HTTP/3.
     33 
     34 Valid values range from 1 to 2147483647 (2^31 - 1) and defaults to 100. The
     35 value passed here would be honored based on other system resources properties.
     36 
     37 # DEFAULT
     38 
     39 100
     40 
     41 # %PROTOCOLS%
     42 
     43 # EXAMPLE
     44 
     45 ~~~c
     46 int main(void)
     47 {
     48   CURLM *m = curl_multi_init();
     49   /* max concurrent streams 200 */
     50   curl_multi_setopt(m, CURLMOPT_MAX_CONCURRENT_STREAMS, 200L);
     51 }
     52 ~~~
     53 
     54 # %AVAILABILITY%
     55 
     56 # RETURN VALUE
     57 
     58 curl_multi_setopt(3) returns a CURLMcode indicating success or error.
     59 
     60 CURLM_OK (0) means everything was OK, non-zero means an error occurred, see
     61 libcurl-errors(3).