Skip to content

Streamable HTTP: don't allocate resources for failed connections #578

@findleyr

Description

@findleyr

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions