Cleans read stream writers list#893
Cleans read stream writers list#893rahulchittimalla wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
felixweinberger
left a comment
There was a problem hiding this comment.
Hi @rahulchittimalla - thank you for your contribution! And apologies for the delay in getting back to you.
Could you provide some additional detail what problem you were running into without this? I understand the session_id not being removed from the _read_stream_writers but I'm curious whether this was actually causing any issues for you?
If this was causing bugs in production for you or if there's some reproducible problem as a result of this, would be great to add a test that demonstrates the broken behavior?
Happy to get back to this quickly if you have the bandwidth to update the PR here!
|
Closing this one for now as it's been a while - we're currently going through older PRs to ensure we prioritize limited maintainer time appropriately. Happy to reopen this if you come back to this at a later time to continue the discussion - in that case feel free to ping here. |
Motivation and Context
Currently, there is no explicit cleanup of the
session_idfrom the_read_stream_writers. When the connection closes (client disconnects) the code closes the streams, but does not remove thesession_idkey from_read_stream_writersdictionary when the connection is closed.How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context