java-sdk/mcp-test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nicolas Quinquenel 2bb1481ec3
Make STDIO transport sendMessage thread-safe (#304)
Concurrent calls to `sendMessage` on the STDIO transports raced on the
unicast sink and sporadically failed with `FAIL_NON_SERIALIZED`, dropping
the message with `RuntimeException("Failed to enqueue message")`.

Switch `tryEmitNext` to `emitNext` with a `busyLooping` EmitFailureHandler
so concurrent emissions are serialized as recommended by the Reactor
maintainers. Applied on both `StdioServerTransportProvider` and
`StdioClientTransport`.

Co-authored-by: Nicolas Quinquenel <nicolas.quinquenel@sonarsource.com>
Signed-off-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
2026-09-04 19:51:54 +02:00
..
src Make STDIO transport sendMessage thread-safe (#304) 2026-09-04 19:51:54 +02:00
pom.xml Next development version 2026-08-19 15:27:57 +02:00