Skip to content

Commit 09f1f35

Browse files
committed
fix: increase default stdio connection timeout from 30s to 60s
Some MCP servers (especially those with heavy initialization like npm install or large model loading) can take longer than 30s to complete the handshake. Increase the default to 60s to reduce spurious connection timeout failures. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 1b36016 commit 09f1f35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/mcpmux-gateway/src/pool/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use super::transport::{
2424
};
2525

2626
/// Default connection timeout
27-
const DEFAULT_CONNECT_TIMEOUT: Duration = Duration::from_secs(30);
27+
const DEFAULT_CONNECT_TIMEOUT: Duration = Duration::from_secs(60);
2828

2929
/// Result of a connection attempt
3030
#[derive(Debug)]

0 commit comments

Comments
 (0)