Skip to main content

DEFAULT_HTTP_TIMEOUT

Constant DEFAULT_HTTP_TIMEOUT 

Source
pub const DEFAULT_HTTP_TIMEOUT: Duration;
Available on crate feature mcp only.
Expand description

Default request timeout for the reqwest client backing ReqwestPoster.

Without this, a streamable-HTTP server that holds an SSE stream open (with keep-alive comments) would block a request forever. Matches the stdio transport’s default response timeout. Override per poster with ReqwestPoster::with_timeout.