Skip to content

Fix memory leak when double invoking RestChannel.sendResponse (#89873)#89885

Merged
elasticsearchmachine merged 1 commit intoelastic:7.17from
original-brownbear:89873-7.17
Sep 7, 2022
Merged

Fix memory leak when double invoking RestChannel.sendResponse (#89873)#89885
elasticsearchmachine merged 1 commit intoelastic:7.17from
original-brownbear:89873-7.17

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

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.

backport of #89873

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 backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Sep 7, 2022
@elasticsearchmachine elasticsearchmachine merged commit 636ac50 into elastic:7.17 Sep 7, 2022
@original-brownbear original-brownbear deleted the 89873-7.17 branch September 7, 2022 16:50
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/Network Http and internode communication implementations v7.17.7

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants