Skip to content

[8.4] Fix memory leak when double invoking RestChannel.sendResponse (#89873)#89881

Merged
elasticsearchmachine merged 1 commit intoelastic:8.4from
original-brownbear:backport/8.4/pr-89873
Sep 7, 2022
Merged

[8.4] Fix memory leak when double invoking RestChannel.sendResponse (#89873)#89881
elasticsearchmachine merged 1 commit intoelastic:8.4from
original-brownbear:backport/8.4/pr-89873

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

Backports the following commits to 8.4:

When using the resource handling channel we must make sure that
if we (by what is IMO a bug) try to double invoke it after
having already sent a response (or tried to do so) we at least
release the memory in the channel's outbound buffer.
Otherwise we will leak any memory from it that was used to create
the now failing to send `RestResponse`.
@original-brownbear original-brownbear added :Distributed/Network Http and internode communication implementations >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Distributed Meta label for distributed team. labels Sep 7, 2022
@elasticsearchmachine elasticsearchmachine merged commit 3665655 into elastic:8.4 Sep 7, 2022
@original-brownbear original-brownbear deleted the backport/8.4/pr-89873 branch September 7, 2022 16:09
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 >bug :Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. v8.4.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants