Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

It is confusing to readers to report Channel is already closed in
reaction to a double-response bug, and this may be interpreted as a
networking issue. We're not really closing anything here, and it's a
definite logic bug to call sendResponse() twice, so this commit
clarifies the actual problem in the exception message.

Relates ES-10996

Backport of #124706 to 8.x

It is confusing to readers to report `Channel is already closed` in
reaction to a double-response bug, and this may be interpreted as a
networking issue. We're not really closing anything here, and it's a
definite logic bug to call `sendResponse()` twice, so this commit
clarifies the actual problem in the exception message.

Relates ES-10996

Backport of elastic#124706 to `8.x`
@DaveCTurner DaveCTurner added >non-issue :Distributed Coordination/Network Http and internode communication implementations backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.19.0 labels Mar 13, 2025
@elasticsearchmachine elasticsearchmachine merged commit 49f6863 into elastic:8.x Mar 13, 2025
15 checks passed
@DaveCTurner DaveCTurner deleted the 2025/03/13/double-close-rest-message-8x branch March 13, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed Coordination/Network Http and internode communication implementations >non-issue v8.19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants