We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e889f49 commit b25dbccCopy full SHA for b25dbcc
1 file changed
src/mcp/client/session.py
@@ -57,10 +57,11 @@ async def __call__(
57
async def _default_message_handler(
58
message: RequestResponder[types.ServerRequest, types.ClientResult] | types.ServerNotification | Exception,
59
) -> None:
60
+ await anyio.lowlevel.checkpoint()
61
+
62
if isinstance(message, Exception):
63
# Re-raise exceptions so they propagate back to the application
64
raise message
- await anyio.lowlevel.checkpoint()
65
66
67
async def _default_sampling_callback(
0 commit comments