Skip to content

fix(volo-thrift): clean waiters while failed waiting for idle connection#547

Merged
Millione merged 1 commit intocloudwego:mainfrom
Millione:fix-waiters-memory-leak
Feb 6, 2025
Merged

fix(volo-thrift): clean waiters while failed waiting for idle connection#547
Millione merged 1 commit intocloudwego:mainfrom
Millione:fix-waiters-memory-leak

Conversation

@Millione
Copy link
Copy Markdown
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
Comment thread volo-thrift/src/transport/pool/mod.rs Outdated
Comment thread volo-thrift/src/transport/pool/mod.rs Outdated
@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
@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