Skip to content

Close max-age SSE rotations gracefully instead of aborting#1285

Merged
RhysSullivan merged 1 commit into
mainfrom
sse-rotation-quiet-close
Jul 3, 2026
Merged

Close max-age SSE rotations gracefully instead of aborting#1285
RhysSullivan merged 1 commit into
mainfrom
sse-rotation-quiet-close

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

Max-age SSE rotation currently aborts the stream (writer.abort + WS close 1013 + error-level log), so every rotation records an exception invocation outcome (~3% of prod requests) and inflates error metrics. Close gracefully instead: final SSE comment frame, writer.close(), WS close 1000, info-level log. Pending-bytes cap close is unchanged.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud ba5cb68 Jul 03 2026, 07:55 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing ba5cb68 Commit Preview URL

Branch Preview URL
Jul 03 2026, 07:54 PM

@RhysSullivan RhysSullivan marked this pull request as ready for review July 3, 2026 19:55
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@RhysSullivan RhysSullivan merged commit 4d01290 into main Jul 3, 2026
37 of 43 checks passed
@RhysSullivan RhysSullivan deleted the sse-rotation-quiet-close branch July 3, 2026 20:08
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