From 603a746f49c68b06ab5d8b3ceeca3afde987cab5 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Fri, 12 Aug 2022 17:11:23 +0900 Subject: [PATCH] Lower Linux version cannot change HTTP2 max stream CURLMOPT_MAX_CONCURRENT_STREAMS can be supported as of curl 7.67.0 --- lib/sbi/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sbi/client.c b/lib/sbi/client.c index e0ce44ab1..e46ff733f 100644 --- a/lib/sbi/client.c +++ b/lib/sbi/client.c @@ -118,8 +118,10 @@ ogs_sbi_client_t *ogs_sbi_client_add(ogs_sockaddr_t *addr) curl_multi_setopt(multi, CURLMOPT_SOCKETDATA, client); curl_multi_setopt(multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb); curl_multi_setopt(multi, CURLMOPT_TIMERDATA, client); +#ifdef CURLMOPT_MAX_CONCURRENT_STREAMS curl_multi_setopt(multi, CURLMOPT_MAX_CONCURRENT_STREAMS, ogs_app()->pool.stream); +#endif ogs_list_add(&ogs_sbi_self()->client_list, client);