OVMS3-idf/components/esp_http_server/src
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
..
port/esp32 HTTP Server: Added ability to select core 2019-03-21 11:22:58 +08:00
util HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
esp_httpd_priv.h esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes 2019-03-05 00:21:03 +05:30
httpd_main.c esp_http_server : Only accept new connections if server has capacity to handle more 2019-04-03 13:34:12 +00:00
httpd_parse.c HTTP Server : Fix for tolerating LF terminated headers 2019-03-26 14:21:40 +05:30
httpd_sess.c esp_http_server/lru_counter_for_timestamp:Added LRU counter for timer 2019-02-25 10:08:15 +00:00
httpd_txrx.c HTTP Server : Fix for tolerating LF terminated headers 2019-03-26 14:21:40 +05:30
httpd_uri.c http_server : Added feature for invoking user configurable handlers during server errors 2019-02-25 09:13:39 +00:00