Add idle session timeout to StreamableHTTPSessionManager (#2022)

This commit is contained in:
Felix Weinberger 2026-02-18 10:47:02 +00:00 • committed by GitHub
commit 92140e5086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,6 +169,8 @@ class StreamableHTTPServerTransport:
] = {}
self._sse_stream_writers: dict[RequestId, MemoryObjectSendStream[dict[str, str]]] = {}
self._terminated = False
# Idle timeout cancel scope; managed by the session manager.
self.idle_scope: anyio.CancelScope | None = None
@property
def is_terminated(self) -> bool: