From c124e6b3c04bfd254e24312bc66c2bc9db919442 Mon Sep 17 00:00:00 2001 From: Kunal Ekawde Date: Tue, 24 Sep 2019 08:56:11 -0400 Subject: CURLMOPT_MAX_CONCURRENT_STREAMS: new setopt Closes #4410 --- include/curl/multi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/curl/multi.h b/include/curl/multi.h index 02df0f389..b39218395 100644 --- a/include/curl/multi.h +++ b/include/curl/multi.h @@ -396,6 +396,9 @@ typedef enum { /* This is the argument passed to the server push callback */ CINIT(PUSHDATA, OBJECTPOINT, 15), + /* maximum number of concurrent streams to support on a connection */ + CINIT(MAX_CONCURRENT_STREAMS, LONG, 16), + CURLMOPT_LASTENTRY /* the last unused */ } CURLMoption; @@ -448,6 +451,9 @@ typedef int (*curl_push_callback)(CURL *parent, struct curl_pushheaders *headers, void *userp); +/* value for MAXIMUM CONCURRENT STREAMS upper limit */ +#define INITIAL_MAX_CONCURRENT_STREAMS ((1U << 31) - 1) + #ifdef __cplusplus } /* end of extern "C" */ #endif -- cgit v1.2.3