Skip to content

Fixup transition to ended assert#6017

Merged
jasnell merged 1 commit intomainfrom
jasnell/compression-stream-state-check-fix
Feb 4, 2026
Merged

Fixup transition to ended assert#6017
jasnell merged 1 commit intomainfrom
jasnell/compression-stream-state-check-fix

Conversation

@jasnell
Copy link
Copy Markdown
Collaborator

@jasnell jasnell commented Feb 4, 2026

When the stream is already closed or errored, the
transitionFromTo returns kj::none, which causes an assertion failure. The original version allowed this to be idempotent.. so simply add a check to see if we're in a terminal state already. If so, just return.

When the stream is already closed or errored, the
`transitionFromTo` returns `kj::none`, which causes an
assertion failure. The original version allowed this to
be idempotent.. so simply add a check to see if we're in
a terminal state already. If so, just return.
@jasnell jasnell requested a review from harrishancock February 4, 2026 20:39
@jasnell jasnell requested review from a team as code owners February 4, 2026 20:39
@jasnell jasnell enabled auto-merge (squash) February 4, 2026 21:32
@jasnell jasnell merged commit 5a2bc99 into main Feb 4, 2026
33 of 37 checks passed
@jasnell jasnell deleted the jasnell/compression-stream-state-check-fix branch February 4, 2026 22: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.

2 participants