Commit 7f7e00e
Fix: Replace Mono.zip with Mono.when in StdioServerTransportProvider#sendMessage
Mono.zip() on Mono<Void> sources cancels the slower publisher when the
faster one completes empty, which can cause the inbound or outbound
ready signal to be prematurely cancelled. Mono.when() correctly waits
for all sources to complete before proceeding.
Fixes #303
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 26304a7 commit 7f7e00e
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- mcp-core/src/main/java/io/modelcontextprotocol/server/transport
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments