OVMS3-idf/components/esp_http_server/src
Anurag Kar 9c6bec203d 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-05-28 08:49:02 +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 : Allow binding to same address and port upon restarting server without delay 2019-05-02 05:29:38 +00:00
httpd_parse.c esp_http_server : Logging of purged data to monitor made configurable 2019-05-10 14:25:39 +05:30
httpd_sess.c HTTP Server : Close new session immediately if open_fn fails 2019-05-28 08:49:02 +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