fix: allow concurrent streamable http requests (#1186)
* fix: allow concurrent streamable http requests * fix: keep streamable http recovery responsive Keep cancellation and replies available while old session POSTs finish. Bound the wait for old POSTs and the replacement initialization handshake. Do not retry interrupted POSTs because the server may have processed them. Add regressions for recovery, queued cancellation, control timeouts, and server replies needed by active requests. * fix: preserve response and cancellation ordering * refactor: clarify streamable http control flow * fix: match stream responses against pending request ids Match responses against all pending requests before removing a stream registration. Keep distinct numeric and string ids separate while preserving the existing fallback for servers that stringify numeric ids. Add a mixed-id regression and keep a separate registration owner alive in the abandoned-cancellation test. * feat: make streamable http control timeouts configurable
This commit is contained in:
parent
4a738b9dd9
commit
697c497724
1 changed files with 2103 additions and 296 deletions
1133
crates/rmcp/tests/test_streamable_http_client_concurrency.rs
Normal file
1133
crates/rmcp/tests/test_streamable_http_client_concurrency.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue