Commit 7a6ddf9
committed
Fix Bug modelcontextprotocol#6: Remove blocking await logger calls from response handlers
- Removed await logger?.trace() from handleResponse() (lines 689-692)
- Removed await logger?.trace() from handleMessage() (lines 716-719)
- Removed await logger?.trace() from handleBatchResponse() (lines 762-763)
These calls were causing 10-second actor boundary crossing delays when
processing tool call responses, causing callTool() to appear to hang.
Replaced with NSLog() for immediate, non-blocking logging.
This fixes the final blocker preventing MCP tool execution from working.1 parent 614c251 commit 7a6ddf9
1 file changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
691 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
| |||
711 | 713 | | |
712 | 714 | | |
713 | 715 | | |
714 | | - | |
715 | | - | |
716 | | - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
717 | 721 | | |
718 | 722 | | |
719 | 723 | | |
| |||
755 | 759 | | |
756 | 760 | | |
757 | 761 | | |
758 | | - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
759 | 765 | | |
760 | 766 | | |
761 | 767 | | |
| |||
0 commit comments