OVMS3-idf/components/esp_http_server
Anurag Kar befc74e0f0 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-08 11:34:20 +05:30
..
include esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes 2019-03-05 13:06:33 +05:30
src esp_http_server : Only accept new connections if server has capacity to handle more 2019-04-08 11:34:20 +05:30
test HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +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 esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30