OVMS3-idf/components/esp_http_server
Anurag Kar 7e676c1055 esp_http_server : Only accept new connections if server has capacity to handle more
This fix prevents HTTP server from accepting new connections when the total count of connected
sockets has reached the max_open_sockets limit set during configuration. The pending connections
are kept in backlog until atleast one of the connected sockets is closed. The maximum number of
connection requests that can kept in backlog is specified as backlog_conn configuration option.
Note that this modification has no effect when LRU purge is enabled.

Also added sanity check on setting for max_open_sockets during configuration.

Solution suggested by jimparis https://github.com/espressif/esp-idf/issues/3183#issue-421234265

Closes https://github.com/espressif/esp-idf/issues/3183
2019-04-03 13:34:12 +00:00
..
include HTTP Server: Added ability to select core 2019-03-21 11:22:58 +08:00
src esp_http_server : Only accept new connections if server has capacity to handle more 2019-04-03 13:34:12 +00:00
test HTTP Server : Unit test added for httpd_uri_match_wildcard() function as given in https://github.com/espressif/esp-idf/pull/2581#issuecomment-430788473 2019-01-14 08:59:55 +05:30
CMakeLists.txt HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
component.mk HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
Kconfig http_server : Added feature for invoking user configurable handlers during server errors 2019-02-25 09:13:39 +00:00