Skip to content

Commit 931959e

Browse files
committed
don't close persistent pipe after one response
1 parent cb222fb commit 931959e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/mcp/client/streamable.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ async def sse_reader(event_source: EventSource):
7575
except Exception as exc:
7676
logger.error(f"Error in sse_reader: {exc}")
7777
await read_stream_writer.send(exc)
78-
finally:
79-
await read_stream_writer.aclose()
8078

8179
async def post_writer():
8280
nonlocal headers

0 commit comments

Comments
 (0)