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 data leak #218

Draft
wants to merge 1 commit into
base: portal
Choose a base branch
from
Draft

Fix data leak #218

wants to merge 1 commit into from

Conversation

r4f4ss
Copy link

@r4f4ss r4f4ss commented Nov 2, 2024

fixes #215

Explanation

Function handleUtpTalkRequest create UTP connections as demanded, but sometimes those connections are not closed, possibly due to peer not responding.

Proposed Solution

The function handleExpiredUtpTalkRequest in invoked after an expire time of 20 seconds and close the respective UTP connection if it is not been used.

@r4f4ss
Copy link
Author

r4f4ss commented Nov 2, 2024

After detailed analysis I observed that his solution only delay the memory leak, that still happens, wip investigation.

@r4f4ss r4f4ss marked this pull request as draft November 2, 2024 15:11
@GrapeBaBa
Copy link
Member

@r4f4ss Thanks, I thought the bug may be here, we cached the utp packet recently, but since we can't call the function callDone, so that the cached call will never be removed, the response timeout in line 619 actually not effect. We may need an approach to clean this. @thinkAfCod

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.

Memory usage ever grows - data leak
2 participants