You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by dm...@apache.org on 2023/02/15 16:40:58 UTC

[trafficserver] branch master updated: QUIC: Remove hardcoded quiche set_initial_max_streams and use config values instead. (#9412)

This is an automated email from the ASF dual-hosted git repository.

dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new d9fb66d7f0 QUIC: Remove hardcoded quiche set_initial_max_streams and use config values instead. (#9412)
d9fb66d7f0 is described below

commit d9fb66d7f01a33bf5cc5f45e72039a83bd2c9b57
Author: Damian Meden <dm...@apache.org>
AuthorDate: Wed Feb 15 16:40:51 2023 +0000

    QUIC: Remove hardcoded quiche set_initial_max_streams and use config values instead. (#9412)
---
 iocore/net/QUICNetProcessor_quiche.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/iocore/net/QUICNetProcessor_quiche.cc b/iocore/net/QUICNetProcessor_quiche.cc
index 2320b5a43e..abe9d59c13 100644
--- a/iocore/net/QUICNetProcessor_quiche.cc
+++ b/iocore/net/QUICNetProcessor_quiche.cc
@@ -76,6 +76,7 @@ QUICNetProcessor::start(int, size_t stacksize)
   QUICConfig::startup();
   QUICCertConfig::startup();
   QUICCertConfig::scoped_config certs;
+  QUICConfig::scoped_config params;
   SSLCertContext *context = certs->get(0);
 
   quiche_enable_debug_logging(debug_log, NULL);
@@ -95,8 +96,8 @@ QUICNetProcessor::start(int, size_t stacksize)
   quiche_config_set_initial_max_stream_data_bidi_local(this->_quiche_config, 1000000);
   quiche_config_set_initial_max_stream_data_bidi_remote(this->_quiche_config, 1000000);
   quiche_config_set_initial_max_stream_data_uni(this->_quiche_config, 1000000);
-  quiche_config_set_initial_max_streams_bidi(this->_quiche_config, 100);
-  quiche_config_set_initial_max_streams_uni(this->_quiche_config, 100);
+  quiche_config_set_initial_max_streams_bidi(this->_quiche_config, params->initial_max_streams_bidi_in());
+  quiche_config_set_initial_max_streams_uni(this->_quiche_config, params->initial_max_streams_uni_in());
   quiche_config_set_cc_algorithm(this->_quiche_config, QUICHE_CC_RENO);
 
 #ifdef TLS1_3_VERSION_DRAFT_TXT