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

add ctx canceled err check #960

Merged

Conversation

godeamon
Copy link
Contributor

ISSUE: #958
There is no need to re-establish the connection for context canceled error, otherwise a lot of memory will be generated when calling GetValue in large numbers.

Looking forward to someone reviewing the code.

@guillaumemichel
Copy link
Contributor

guillaumemichel commented Nov 23, 2023

Thanks @godeamon for your contribution!

TestProvidesMany is failing consistently for Ubuntu and MacOS, note that this test is skipped in Windows following #760.

@godeamon
Copy link
Contributor Author

godeamon commented Nov 24, 2023

@guillaumemichel Thanks for your reply. I've tested the new commit code locally without any issues. The previous code will cause memory leaks, please refer to the issue for details: #958

If this code can be merged, can a minor version be released? Otherwise, my program's memory will keep growing. Thank you very much!

@guillaumemichel guillaumemichel linked an issue Nov 28, 2023 that may be closed by this pull request
Copy link
Contributor

@guillaumemichel guillaumemichel left a comment

Choose a reason for hiding this comment

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

The tests are now passing, thanks @godeamon ! I will create the new release

@guillaumemichel guillaumemichel merged commit ef7d2b1 into libp2p:master Nov 28, 2023
9 checks passed
@godeamon godeamon deleted the bug/send-request-read-msg-ctx-err-check branch November 28, 2023 11:02
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.

IpfsDHT.GatValue method causes memory growth
2 participants