mcp: prevent leaks of ServerSession on StatefulServer - #1137
Conversation
…InitializeParams persistence during discovery
|
Thanks for the quick turnaround. I verified this branch ( Reproduction from #1136 — was The session count now stays at exactly 1 while a client is connected, instead of climbing by one per connection. Other checks on this branch:
Your approach is neater than the one I sketched in #1136. I proposed routing discover-only requests through the ephemeral path in Nothing further from me — happy to see this land. |
…d version in server session initialization
Fixes #1136