Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,17 @@ let transport = StreamableHttpClientTransport::from_uri("http://localhost:8000/m
let client = ClientInfo::default().serve(transport).await?;
```

The client allows up to 16 ordinary http POSTs at once. Configure this with
`StreamableHttpClientTransportConfig::with_uri(url).max_concurrent_requests(n)`;
`1` keeps ordinary POSTs serial, and `0` is treated as `1`. An open sse response
stream does not count against this limit. Cancellation and replies use a
separate queue with one extra POST slot. Each control POST has a five-second
timeout after it starts. Session recovery waits up to five seconds for old
POSTs, then stops any that remain. Those POSTs are not retried because the
server may have processed them. Configure this wait and the separate
initialization timeout with `session_recovery_timeout`. Callers still decide
which tools may run at the same time and which need approval.

#### Server-Sent Events (SSE)

Streamable HTTP responses arrive as either a single `application/json` body or a
Expand Down
5 changes: 5 additions & 0 deletions crates/rmcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ name = "test_streamable_http_json_response"
required-features = ["server", "client", "transport-streamable-http-server", "reqwest"]
path = "tests/test_streamable_http_json_response.rs"

[[test]]
name = "test_streamable_http_client_concurrency"
required-features = ["client", "transport-streamable-http-client"]
path = "tests/test_streamable_http_client_concurrency.rs"

[[test]]
name = "test_streamable_http_protocol_version"
required-features = ["server", "client", "transport-streamable-http-server", "reqwest"]
Expand Down
Loading