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 mux client memory leak #18956

Merged
merged 1 commit into from Feb 2, 2024

Conversation

klauspost
Copy link
Contributor

Description

Add missing client cancellation, resulting in memory buildup tracing back to context.WithCancelCause and context.WithCancelDeadlineCause.

How to test this PR?

Test buildup on active cluster. Check pprof.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Add missing client cancellation, resulting in memory buildup tracing back to context.WithCancelCause/context.WithCancelDeadlineCause
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

LGTM

@harshavardhana harshavardhana merged commit 63bf5f4 into minio:master Feb 2, 2024
20 checks passed
klauspost added a commit to klauspost/minio that referenced this pull request Feb 6, 2024
Subrouted requests were also leaking contexts in mux clients.

Similar to minio#18956
harshavardhana pushed a commit that referenced this pull request Feb 6, 2024
Subrouted requests were also leaking contexts in mux clients.

Similar to #18956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants