Skip to content

Commit

Permalink
increase MAX_PARALLEL_STREAMS and AGENT_SHUTDOWN_IDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Oct 4, 2023
1 parent 3ba30eb commit 5eea3ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions quic-forward-proxy/src/outbound/tx_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ use std::time::{Duration, Instant};
use tokio::sync::mpsc::Receiver;
use tokio::sync::RwLock;

const MAX_PARALLEL_STREAMS: usize = 6;
const MAX_PARALLEL_STREAMS: usize = 50;
pub const PARALLEL_TPU_CONNECTION_COUNT: usize = 4;
const AGENT_SHUTDOWN_IDLE: Duration = Duration::from_millis(2500); // ms; should be 4x400ms+buffer
// changed from 2500 to 30000 to avoid the risk of early shutdown
const AGENT_SHUTDOWN_IDLE: Duration = Duration::from_millis(30000); // ms; should be 4x400ms+buffer

lazy_static::lazy_static! {
static ref OUTBOUND_SEND_TX: IntCounter =
Expand Down

0 comments on commit 5eea3ea

Please sign in to comment.