Skip to content
Open
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
3 changes: 2 additions & 1 deletion tpu-client-next/src/quic_networking.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Utility code to handle quic networking.

use std::time::Duration;
use {
crate::connection_workers_scheduler::BindTarget,
quinn::{
Expand Down Expand Up @@ -39,7 +40,7 @@ pub(crate) fn create_client_config(client_certificate: &QuicClientCertificate) -
let transport_config = {
let mut res = TransportConfig::default();

let timeout = IdleTimeout::try_from(QUIC_MAX_TIMEOUT).unwrap();
let timeout = IdleTimeout::try_from(Duration::from_secs(15)).unwrap();
res.max_idle_timeout(Some(timeout));
res.keep_alive_interval(Some(QUIC_KEEP_ALIVE));
// Disable Quic send fairness.
Expand Down