Skip to content

Commit d14a2d7

Browse files
committed
proposed fix - remove lines that cause a notification to be sent BACK after receiving it. This seems to create deadlock.
1 parent d69d94e commit d14a2d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mcp/shared/session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ async def _receive_loop(self) -> None:
324324
await self._in_flight[cancelled_id].cancel()
325325
else:
326326
await self._received_notification(notification)
327-
await self._incoming_message_stream_writer.send(
328-
notification
329-
)
327+
# await self._incoming_message_stream_writer.send(
328+
# notification
329+
# )
330330
except Exception as e:
331331
# For other validation errors, log and continue
332332
logging.warning(

0 commit comments

Comments
 (0)