Add idle session timeout to StreamableHTTPSessionManager (#2022)
This commit is contained in:
parent
be5bb7c4f2
commit
92140e5086
1 changed files with 129 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue