implement quinn max_idle_timeout (for persistant eventeventsource listener)

This commit is contained in:
Jun Kurihara 2023-01-19 18:51:22 +09:00
commit 58f1918b3c
7 changed files with 18 additions and 1 deletions

View file

@ -130,7 +130,8 @@ where
let mut transport_config_quic = TransportConfig::default();
transport_config_quic
.max_concurrent_bidi_streams(self.globals.h3_max_concurrent_bidistream)
.max_concurrent_uni_streams(self.globals.h3_max_concurrent_unistream);
.max_concurrent_uni_streams(self.globals.h3_max_concurrent_unistream)
.max_idle_timeout(self.globals.h3_max_idle_timeout);
let mut server_config_h3 = QuicServerConfig::with_crypto(Arc::new(rustls_server_config));
server_config_h3.transport = Arc::new(transport_config_quic);