Commit ad88b6f
committed
fix: reject replies from retired streamable http sessions
Keep the inbound transport generation with automatic handler responses
and errors. Reject replies after session recovery, including during the
shutdown drain, without adding wire metadata.
Match the completing handler's token before removing its request id so
an old handler cannot cancel a replacement that reuses the id.
Cover late replies, id reuse, scoped send context, and shutdown races.1 parent 3b5ca4d commit ad88b6f
4 files changed
Lines changed: 705 additions & 37 deletions
File tree
- crates/rmcp
- src
- transport
- tests
0 commit comments