Skip to content

fix: handle large SSE events in Vert.x HTTP client - #1304

Merged
kabir merged 1 commit into
a2aproject:mainfrom
kabir:fix/vertx-sse-large-events
Nov 9, 2026
Merged

kabir merged 1 commit into
a2aproject:mainfrom
kabir:fix/vertx-sse-large-events

Conversation

@kabir

@kabir kabir commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

The Vert.x HTTP client can stop reading when an SSE event exceeds the codec's 4 KiB buffer watermark, leaving the stream unfinished. Parse response buffers incrementally with the shared SSE parser so large events are delivered and streams complete.

Apply the default line and event limits, preserve UTF-8 and line framing across buffers, and recover after oversized events. Add regression coverage for fragmented GET and POST streams, parser limits, and callback exceptions, and document the Vert.x parser limits.

Validation: mvn -pl extras/http-client-vertx -am test -DskipTests=false passed.

Parse response buffers incrementally with the shared SSE parser and enforce the default line and event limits. Preserve framing across UTF-8 and line-ending boundaries, recover after oversized events, and complete futures when callbacks fail.

Add coverage for fragmented GET and POST streams, parser limits, and callback failures.
@kabir

kabir commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fixed #1304

@kabir
kabir merged commit 504e2a9 into a2aproject:main Nov 9, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant