http_server component refuses to close inactive WebSocket connections

EfogDev
Posts: 2
Joined: Mon May 01, 2023 7:33 am

http_server component refuses to close inactive WebSocket connections

Postby EfogDev » Mon May 01, 2023 8:48 am

Hi there! I got a problem that I have no idea how to debug. Any help will be appreciated.
So, basically, you can see the problem on the screenshot attached.
Screenshot from 2023-05-01 11-44-23.png
Screenshot from 2023-05-01 11-44-23.png (275.4 KiB) Viewed 661 times
The ESP32S3 is acting as WiFi AP.
After I connect to it with my phone and WS connection is established, http_server tries to cleanup some closed session, fails and that is being repeated forever. Meanwhile, the WS connection works, I have no memory leaks, but LRU purge doesn't work (same error), and I cannot establish new connections unless I reboot the device.

After investigating the esp-idf source code, I found that this is the function that fails:
https://github.com/espressif/esp-idf/bl ... ess.c#L471

But I don't understand 1) why does it fail 2) what makes it being executed in a loop

Thanks in advance!

Who is online

Users browsing this forum: No registered users and 87 guests