ESP-IDF v5.0 introducing " httpd_accept_conn: error in accept (23)"?
Posted: Thu Dec 22, 2022 12:24 pm
I have an application running on ESP32 with the following features:
I decided to take the plunge and migrate to v5.0. I finally got it all working with very minimal changes and it seemed Ok. But I noticed that the application will "degrade" with use of the above listed features and start failing with errors:
Or, alternatively, if I have logging turned on and attempt to open a socket, I get, ad infinitum (this is my message when an attempt to open a socket fails):
It's tied in with the logging feature somehow. If I open and close the logging socket enough times, it seems they don't all get closed and eventually resources are gobbled up. If I turn off the logging altogether everything works fine. The logging works fine in ESP-IDF v4.4.2.
Sorry I don't have much more detail than that at the moment, but I wanted to know if anyone else has seen this. I'd like to resolve it if I can and stick with ESP-IDF v5.0, but I will need to revert to v4.4.2 (or perhaps v4.4.3) otherwise.
- HTTP REST API server
- OTA firmware update
- Optional logging to a syslog server
I decided to take the plunge and migrate to v5.0. I finally got it all working with very minimal changes and it seemed Ok. But I noticed that the application will "degrade" with use of the above listed features and start failing with errors:
Code: Select all
W (1245391) httpd: httpd_accept_conn: error in accept (23)
W (1245391) httpd: httpd_server: error accepting new connection
Code: Select all
W (33186) BD-PTB: Unable to create logging socket: (23) Too many open files in system
W (33711) BD-PTB: Unable to create logging socket: (23) Too many open files in system
W (34231) BD-PTB: Unable to create logging socket: (23) Too many open files in system
W (34746) BD-PTB: Unable to create logging socket: (23) Too many open files in system
Sorry I don't have much more detail than that at the moment, but I wanted to know if anyone else has seen this. I'd like to resolve it if I can and stick with ESP-IDF v5.0, but I will need to revert to v4.4.2 (or perhaps v4.4.3) otherwise.