-
Notifications
You must be signed in to change notification settings - Fork 638
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
Captive portal feature causes memory leak #1660
Comments
@xoseperez If web handlers can handle these: If we send out proper answer, device stops bugging us with captive portal checks. No memory leaking that way. |
Bug description
WIFI_AP_CAPTIVE=1
causes memory exhaustion when Android phone is connected to the softAP. Base available heap (running Core 2.6.0-dev) of 30k on base build for nodemcu-lolin is decreased to 15k in about 10 seconds. Can get as low as 3k. If left alone for some time, it reboots due to OOM exception.Steps to reproduce
heap
output using serial / telnet 192.168.4.1Device information
Testing device is a phone running Android 9
Board flavour does not matter, only that the webui is enabled and WIFI_AP_CAPTIVE is on.
Tested with base builds using Core 2.3.0 and newest git + lwip2. By coincidence or not, lwip2 builds cause much more rapid exhaustion. The connecting device is issuing a lot of requests to non-existent pages (like generate_204, gen_204 etc.), which seem like the root cause
Maybe TCP connections are kept alive somehow? Or server library is missing some clean-up routine?
The text was updated successfully, but these errors were encountered: