Skip to content

Fix incorrect cancellation frame write failure handling. - #315

Merged
vietj merged 1 commit into
mainfrom
fix-cancellation-write-failure-endpoint-handling
Aug 24, 2026
Merged

Fix incorrect cancellation frame write failure handling.#315
vietj merged 1 commit into
mainfrom
fix-cancellation-write-failure-endpoint-handling

Conversation

@vietj

@vietj vietj commented Aug 24, 2026

Copy link
Copy Markdown
Member

Motivation:

The failure write of a cancellation frame triggers the endpoint to be taken down.

The implementation rely the stream remote endpoint field and this can be set to null when the stream is closed, resulting in not disposing the endpoint.

Changes:

Let the write failure uses the capture endpoint reference to attempt to dispose the endpoint.

@vietj vietj added the bug Something isn't working label Aug 24, 2026
@vietj vietj added this to the 5.2.0 milestone Aug 24, 2026
Motivation:

The failure write of a cancellation frame triggers the endpoint to be taken down.

The implementation rely the stream remote endpoint field and this can be set to null when the stream is closed, resulting in not disposing the endpoint.

Changes:

Let the write failure uses the capture endpoint reference to attempt to dispose the endpoint.
@vietj
vietj force-pushed the fix-cancellation-write-failure-endpoint-handling branch from 5a3993d to f5c3752 Compare August 24, 2026 17:03
@vietj
vietj merged commit 035644a into main Aug 24, 2026
6 checks passed
@vietj
vietj deleted the fix-cancellation-write-failure-endpoint-handling branch August 24, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant