Fix memory leak in fleet autoscaler webhook HTTP client#4493
Merged
markmandel merged 2 commits intoagones-dev:mainfrom Mar 31, 2026
Merged
Fix memory leak in fleet autoscaler webhook HTTP client#4493markmandel merged 2 commits intoagones-dev:mainfrom
markmandel merged 2 commits intoagones-dev:mainfrom
Conversation
- Change fasThread.state from fasState (value) to *fasState (pointer) so the cached http.Client persists across sync cycles instead of being recreated on every iteration. - Drain HTTP response body before closing to allow http.Transport to reuse connections, preventing unbounded connection growth. Signed-off-by: Mark Mandel <mark@compoundtheory.com>
6718451 to
4520cc5
Compare
Collaborator
|
Build Failed 😭 Build Id: d67b1d54-7d4d-41e4-a176-283019a669a5 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Collaborator
Author
Got a fix for this one in #4480 (least I think so) /gcbrun |
Collaborator
|
Build Succeeded 🥳 Build Id: a05add47-7a67-49ae-94f6-84bb1cafac75 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
lacroixthomas
approved these changes
Mar 31, 2026
Collaborator
lacroixthomas
left a comment
There was a problem hiding this comment.
LGTM ! Good catch !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
What this PR does / Why we need it:
Which issue(s) this PR fixes:
https://agones.slack.com/archives/C9DGM5DS8/p1774882327112899
Special notes for your reviewer:
Thanks @antiphp for the report!