Fix: Prevent session manager shutdown on individual session crash (#841)
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com> Co-authored-by: Inna Harper <inna.hrpr@gmail.com>
This commit is contained in:
parent
3abefeeeaf
commit
7b1078b515
1 changed files with 165 additions and 13 deletions
|
|
@ -173,6 +173,11 @@ class StreamableHTTPServerTransport:
|
|||
] = {}
|
||||
self._terminated = False
|
||||
|
||||
@property
|
||||
def is_terminated(self) -> bool:
|
||||
"""Check if this transport has been explicitly terminated."""
|
||||
return self._terminated
|
||||
|
||||
def _create_error_response(
|
||||
self,
|
||||
error_message: str,
|
||||
|
|
|
|||
Loading…
Reference in a new issue