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(volo-thrift): clean waiters while failed waiting for idle connection #547

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

Millione
Copy link
Member

In the previous implementation of the connection pool , if there is no connection available at all, the tx in the waiter list will keep be inserted and never be cleared, resulting in memory leaks.

This PR solves this problem by clearing the corresponding tx in the waiting queue when rx drops.

@Millione Millione requested review from a team as code owners January 27, 2025 07:49
@Millione Millione force-pushed the fix-waiters-memory-leak branch from a917f11 to 570a9f6 Compare February 5, 2025 03:59
@Millione Millione force-pushed the fix-waiters-memory-leak branch from 570a9f6 to c2d293f Compare February 5, 2025 06:09
@Millione Millione merged commit 5a6018b into cloudwego:main Feb 6, 2025
14 checks passed
@Millione Millione deleted the fix-waiters-memory-leak branch February 6, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants