OVMS3-idf/components/esp_http_server/src
Anurag Kar 95b72a96f8 HTTP Server : Close new session immediately if open_fn fails
open_fn() was introduced in the context of HTTPS server, as a configurable callback function that is called by the HTTP server, on every newly created socket. It is responsible of allocating resources for per session transport security.

Earlier, if open_fn were to fail, the newly created socket would be closed by the server but the corresponding entry, for the now invalid socket, will remain in the internal socket database until that invalid socket is detected due to error when calling select(). Because of this delayed closing of sockets, the HTTPS server would quickly face shortage of available sessions when a lot of SSL handshake errors are happening (this typically occurs when a browser finds that the server certificate is self signed). This changes in this MR fix this issue by clearing up the socket from internal database, right after open_fn fails.

Closes https://github.com/espressif/esp-idf/issues/3479
2019-06-28 10:11:26 +00:00
..
port/esp32 esp_http_server/lru_counter_for_timestamp:Added LRU counter for timer 2019-02-25 10:08:15 +00: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 : Allow binding to same address and port upon restarting server without delay 2019-05-06 10:52:49 +05:30
httpd_parse.c esp_http_server : Logging of purged data to monitor made configurable 2019-06-03 05:51:14 +00:00
httpd_sess.c HTTP Server : Close new session immediately if open_fn fails 2019-06-28 10:11:26 +00:00
httpd_txrx.c HTTP Server : Fix for tolerating LF terminated headers 2019-04-01 15:38:59 +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