fix(protocol): increase per-stream flow control window and channel buffers to improve high-RTT throughput

This commit is contained in:
2026-03-15 17:52:45 +00:00
parent 207b4a5cec
commit 69530f73aa
5 changed files with 12 additions and 5 deletions

View File

@@ -625,7 +625,7 @@ async fn handle_client_connection(
}
// Set up channel for data coming back from hub (capacity 16 is sufficient with flow control)
let (back_tx, mut back_rx) = mpsc::channel::<Vec<u8>>(16);
let (back_tx, mut back_rx) = mpsc::channel::<Vec<u8>>(128);
let send_window = Arc::new(AtomicU32::new(INITIAL_STREAM_WINDOW));
let window_notify = Arc::new(Notify::new());
{

View File

@@ -477,7 +477,7 @@ async fn handle_edge_connection(
});
// Create channel for data from edge to this stream (capacity 16 is sufficient with flow control)
let (data_tx, mut data_rx) = mpsc::channel::<Vec<u8>>(16);
let (data_tx, mut data_rx) = mpsc::channel::<Vec<u8>>(128);
let send_window = Arc::new(AtomicU32::new(INITIAL_STREAM_WINDOW));
let window_notify = Arc::new(Notify::new());
{