-
-
Notifications
You must be signed in to change notification settings - Fork 2k
io_service::stop leaks memory #490
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
Comments
Any ideas or hints where to look? |
Short answer here is... use At the moment, I would only recommend using That said, supporting a |
|
…. This fix passes callbacks bound to weak_ptr's instead of shared_ptr's.
…. This fix passes callbacks bound to weak_ptr's instead of shared_ptr's.
I submitted a pull request #525 which fixes this issue. |
Thank you very much! I will have a look at this soon and probably upgrade to your version. |
Hi, is this issue fixed and pushed to the develop/main branch? |
I'm currently using the 0.3.0-alpha3 version in different projects. It's working fine!
Now I'm interested in supporting simple HTTP requests including request bodies. This functionality was added in 0.5.0.
In my projects I try to have a clean valgrind / Clang sanitizer statistic on shutdown. 0.3.0-alpha3 was clean in this sense. Unfortunately, the 0.6.0 version seems to "leak" memory. Probably it's not a repeated leak but it's polluting the valgrind statistic.
I tried to fix this but didn't find the exact reason for this leak. It seems that the initial connection that gets created when the server starts listening won't be freed. That's strange because it's memory-managed (shared pointer).
The following file contains the modified print_server.cpp (new: clean shutdown on SIGINT) and the valgrind output: report.txt
The text was updated successfully, but these errors were encountered: