Repository navigation
Commit f66ef42
fix: resolve intermittent SSE event delivery failures in JSONRPC transport
The JSONRPC MultiSseSupport was missing flush controls that the REST version
already had, causing Vert.x to buffer SSE writes. When events arrived quickly
(within milliseconds), all events would accumulate in the write buffer without
flushing to the client, resulting in 15-second timeouts in testNonBlockingWithMultipleMessages.
Applied the same pattern from REST implementation:
- Set write queue max size to 1 to force immediate flush
- Add Cache-Control and X-Accel-Buffering headers to prevent buffering
- Send initial SSE comment to kickstart the stream
This fixes intermittent failures in AbstractA2AServerTest where the server
successfully distributed events to child queues but clients never received them.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f537fa6 commit f66ef42
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
786 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
787 | 797 | | |
788 | 798 | | |
789 | 799 | | |
| |||
0 commit comments