Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rs/moq-native/src/noq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ impl NoqClient {
let socket = std::net::UdpSocket::bind(config.bind).context("failed to bind UDP socket")?;

let mut transport = noq::TransportConfig::default();
transport.max_idle_timeout(Some(time::Duration::from_secs(10).try_into().unwrap()));
transport.keep_alive_interval(Some(time::Duration::from_secs(4)));
transport.max_idle_timeout(Some(time::Duration::from_secs(30).try_into().unwrap()));
transport.keep_alive_interval(Some(time::Duration::from_secs(5)));
transport.mtu_discovery_config(None); // Disable MTU discovery

let max_streams = config.max_streams.unwrap_or(crate::DEFAULT_MAX_STREAMS);
Expand Down Expand Up @@ -148,8 +148,8 @@ pub(crate) struct NoqServer {
impl NoqServer {
pub fn new(config: ServerConfig) -> anyhow::Result<Self> {
let mut transport = noq::TransportConfig::default();
transport.max_idle_timeout(Some(Duration::from_secs(10).try_into().unwrap()));
transport.keep_alive_interval(Some(Duration::from_secs(4)));
transport.max_idle_timeout(Some(Duration::from_secs(30).try_into().unwrap()));
transport.keep_alive_interval(Some(Duration::from_secs(5)));
transport.mtu_discovery_config(None); // Disable MTU discovery

let max_streams = config.max_streams.unwrap_or(crate::DEFAULT_MAX_STREAMS);
Expand Down
8 changes: 4 additions & 4 deletions rs/moq-native/src/quinn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ impl QuinnClient {

// TODO Validate the BBR implementation before enabling it
let mut transport = quinn::TransportConfig::default();
transport.max_idle_timeout(Some(time::Duration::from_secs(10).try_into().unwrap()));
transport.keep_alive_interval(Some(time::Duration::from_secs(4)));
transport.max_idle_timeout(Some(time::Duration::from_secs(30).try_into().unwrap()));
transport.keep_alive_interval(Some(time::Duration::from_secs(5)));
transport.mtu_discovery_config(None); // Disable MTU discovery

let max_streams = config.max_streams.unwrap_or(crate::DEFAULT_MAX_STREAMS);
Expand Down Expand Up @@ -149,8 +149,8 @@ impl QuinnServer {
// Enable BBR congestion control
// TODO Validate the BBR implementation before enabling it
let mut transport = quinn::TransportConfig::default();
transport.max_idle_timeout(Some(Duration::from_secs(10).try_into().unwrap()));
transport.keep_alive_interval(Some(Duration::from_secs(4)));
transport.max_idle_timeout(Some(Duration::from_secs(30).try_into().unwrap()));
transport.keep_alive_interval(Some(Duration::from_secs(5)));
transport.mtu_discovery_config(None); // Disable MTU discovery

let max_streams = config.max_streams.unwrap_or(crate::DEFAULT_MAX_STREAMS);
Expand Down
Loading