File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ impl NoqClient {
2323 let socket = std:: net:: UdpSocket :: bind ( config. bind ) . context ( "failed to bind UDP socket" ) ?;
2424
2525 let mut transport = noq:: TransportConfig :: default ( ) ;
26- transport. max_idle_timeout ( Some ( time:: Duration :: from_secs ( 10 ) . try_into ( ) . unwrap ( ) ) ) ;
27- transport. keep_alive_interval ( Some ( time:: Duration :: from_secs ( 4 ) ) ) ;
26+ transport. max_idle_timeout ( Some ( time:: Duration :: from_secs ( 30 ) . try_into ( ) . unwrap ( ) ) ) ;
27+ transport. keep_alive_interval ( Some ( time:: Duration :: from_secs ( 5 ) ) ) ;
2828 transport. mtu_discovery_config ( None ) ; // Disable MTU discovery
2929
3030 let max_streams = config. max_streams . unwrap_or ( crate :: DEFAULT_MAX_STREAMS ) ;
@@ -148,8 +148,8 @@ pub(crate) struct NoqServer {
148148impl NoqServer {
149149 pub fn new ( config : ServerConfig ) -> anyhow:: Result < Self > {
150150 let mut transport = noq:: TransportConfig :: default ( ) ;
151- transport. max_idle_timeout ( Some ( Duration :: from_secs ( 10 ) . try_into ( ) . unwrap ( ) ) ) ;
152- transport. keep_alive_interval ( Some ( Duration :: from_secs ( 4 ) ) ) ;
151+ transport. max_idle_timeout ( Some ( Duration :: from_secs ( 30 ) . try_into ( ) . unwrap ( ) ) ) ;
152+ transport. keep_alive_interval ( Some ( Duration :: from_secs ( 5 ) ) ) ;
153153 transport. mtu_discovery_config ( None ) ; // Disable MTU discovery
154154
155155 let max_streams = config. max_streams . unwrap_or ( crate :: DEFAULT_MAX_STREAMS ) ;
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ impl QuinnClient {
2222
2323 // TODO Validate the BBR implementation before enabling it
2424 let mut transport = quinn:: TransportConfig :: default ( ) ;
25- transport. max_idle_timeout ( Some ( time:: Duration :: from_secs ( 10 ) . try_into ( ) . unwrap ( ) ) ) ;
26- transport. keep_alive_interval ( Some ( time:: Duration :: from_secs ( 4 ) ) ) ;
25+ transport. max_idle_timeout ( Some ( time:: Duration :: from_secs ( 30 ) . try_into ( ) . unwrap ( ) ) ) ;
26+ transport. keep_alive_interval ( Some ( time:: Duration :: from_secs ( 5 ) ) ) ;
2727 transport. mtu_discovery_config ( None ) ; // Disable MTU discovery
2828
2929 let max_streams = config. max_streams . unwrap_or ( crate :: DEFAULT_MAX_STREAMS ) ;
@@ -149,8 +149,8 @@ impl QuinnServer {
149149 // Enable BBR congestion control
150150 // TODO Validate the BBR implementation before enabling it
151151 let mut transport = quinn:: TransportConfig :: default ( ) ;
152- transport. max_idle_timeout ( Some ( Duration :: from_secs ( 10 ) . try_into ( ) . unwrap ( ) ) ) ;
153- transport. keep_alive_interval ( Some ( Duration :: from_secs ( 4 ) ) ) ;
152+ transport. max_idle_timeout ( Some ( Duration :: from_secs ( 30 ) . try_into ( ) . unwrap ( ) ) ) ;
153+ transport. keep_alive_interval ( Some ( Duration :: from_secs ( 5 ) ) ) ;
154154 transport. mtu_discovery_config ( None ) ; // Disable MTU discovery
155155
156156 let max_streams = config. max_streams . unwrap_or ( crate :: DEFAULT_MAX_STREAMS ) ;
You can’t perform that action at this time.
0 commit comments