Skip to main content

connect_within

Function connect_within 

Source
pub async fn connect_within(
    server: &McpServerConfig,
    budget: Duration,
) -> Result<Connected, String>
Expand description

connect with the startup bound supplied.

Why: a test that proves the per-server bound is real — that a hung server costs one timeout, not one per sibling — cannot afford to wait HANDSHAKE_TIMEOUT to do it. Injecting the bound keeps the proof to a second or two without weakening what production uses. Test: mcp_loader_e2e::a_hung_server_does_not_serialise_its_siblings.