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
net.socket:connect() - leaks memory on DNS lookup fail #234
Comments
It's not necessarily a leak as Lua performs garbage collection lazily. |
@dvv I have ran into that issue - my DNS was dead and ESP drains all memory... Anyway, even with garbage collector same issue:
|
This is related: If able to specify DNS servers, it would be helpful. On Fri, Feb 20, 2015 at 4:59 AM, Toshik notifications@github.com wrote:
|
I can reproduce this |
try newest release latest |
This problem is still relevant, and I opened a new issue about it since I can't reopen this one...basically, the test used is the same like this here, and behaviour goes from full restart immediatelly, after a few dns retry/fail attempts or after some undefined time, like 10 minutes or more... |
NodeMCU 0.9.5 build 20150213 powered by Lua 5.1.4
net.socket:connect() leaks memory when called by hostname and DNS query failed. Base leak is about 240 bytes per call.
Test case:
Now run TestDNSLeak() every 5 seconds (do it not too fast, to get timer executed):
The text was updated successfully, but these errors were encountered: