Lower Linux version cannot change HTTP2 max stream

CURLMOPT_MAX_CONCURRENT_STREAMS can be supported as of curl 7.67.0
This commit is contained in:
Sukchan Lee 2022-08-12 17:11:23 +09:00
parent d99491aca5
commit 603a746f49
1 changed files with 2 additions and 0 deletions

View File

@ -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);