-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Memory leak while sending http post request #1383
Comments
I encountered this same issue and posted a test case on stackoverflow (before Marcel let me know that the issue was covered here), and also found a possible clue relating to the message body: http://stackoverflow.com/questions/38397710/nodemcu-memory-leak-in-http-module-post |
My best bet based on a code review:
Conclusion: I'm going to craft a PR in the next days, although my possibilities to actually test the leak's elimination are very limited atm. Anybody with a test setup is welcome to take over 😉 |
I can do that. Any issue that doesn't require extra hardware is a good one for me 😉 The test case @blelump provided is even easier to run than the procedure @Jonathan411 described on SO. |
If additional testing is required, I can run it through the test procedure I already have set up. |
@Jonathan411 yes, would be helpful to have results from another test case for confirmation. |
Expected behavior
Node heap size does not decrease while sending requests to a not working server.
Actual behavior
Node heap size continuously decreases with the amount of sent requests, eg:
Test code
NodeMCU version
Hardware
Info from esptool:
The text was updated successfully, but these errors were encountered: