Close server session after handle stateless request (#1116)

This commit is contained in:
hopeful0 2025-07-15 00:26:06 +08:00 • committed by GitHub
commit b8cb3675dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,6 +190,9 @@ class StreamableHTTPSessionManager:
# Handle the HTTP request and return the response
await http_transport.handle_request(scope, receive, send)
# Terminate the transport after the request is handled
await http_transport.terminate()
async def _handle_stateful_request(
self,
scope: Scope,