In the streamable HTTP handler, we allocate a StreamableServerTransport for incoming requests with no associated session:
|
transport = &StreamableServerTransport{ |
However, if the session fails to initialize (and the server is stateful), we should either immediately clean up these sessions, or avoid creating them in the first place.
In combination with #499, this is critical for avoiding resource leaks during streamable serving.