Close server session after handle stateless request (#1116)
This commit is contained in:
parent
a10fec7fa6
commit
b8cb3675dc
1 changed files with 5 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue