Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Close HTTP request & response body readers #195

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

MikeGoldsmith
Copy link
Contributor

Which problem is this PR solving?

We are not closing parsed HTTP request or response correctly. We don't use them but not closing the reader correctly can lead to memory leaks as the underlying byte buffer is not released and garbage collected.

Short description of the changes

  • Close both HTTP request and response body readers

How to verify that this has the expected result

No functional changes as we're not using the HTTP request or response bodies. This should help reduce the amount of memory creep from byte[]'s that are not cleaned up correctly.

@MikeGoldsmith MikeGoldsmith added the type: bug Something isn't working label Sep 17, 2023
@MikeGoldsmith MikeGoldsmith requested a review from a team September 17, 2023 18:57
@MikeGoldsmith MikeGoldsmith self-assigned this Sep 17, 2023
Copy link
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean up crew

@MikeGoldsmith MikeGoldsmith merged commit 7eed65c into main Sep 18, 2023
4 checks passed
@MikeGoldsmith MikeGoldsmith deleted the mike/close-readers branch September 18, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants