Skip to content

Streamable HTTP: flush SSE headers early - #1310

Open
Kehrlann wants to merge 1 commit into
mainfrom
gh-1155-flush-sse-headers
Open

Kehrlann wants to merge 1 commit into
mainfrom
gh-1155-flush-sse-headers

Conversation

@Kehrlann

@Kehrlann Kehrlann commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Closes #1155

Supersedes #1159, #1163, #1194

@Kehrlann
Kehrlann marked this pull request as draft November 2, 2026 22:04
@Kehrlann
Kehrlann force-pushed the gh-1155-flush-sse-headers branch 2 times, most recently from 86a7d11 to 17277b3 Compare November 3, 2026 09:49
@Kehrlann
Kehrlann marked this pull request as ready for review November 3, 2026 09:53
@Kehrlann
Kehrlann force-pushed the gh-1155-flush-sse-headers branch 2 times, most recently from 4e6cc9e to a48673e Compare November 3, 2026 11:41
Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
@Kehrlann
Kehrlann force-pushed the gh-1155-flush-sse-headers branch from a48673e to 5b28cff Compare November 3, 2026 12:13
Comment on lines +623 to +624
// For streaming responses, we need to return SSE. Before getWriter(): the
// character encoding is ignored once the writer is taken

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new comment is confusing to me. Is it part of a conversation with an agent?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepareSseResponse() sets the encoding I suppose. But that context is unknown to a reader.
Hint: update your coding agent to always write comments as self-contained for the future reader, not as part of a conversation in its current context.

This branch has not been deployed

No deployments
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.

HttpServletStreamableServerTransportProvider: GET stream sends no status or headers until the first event

2 participants