esp-idf/components/esp_http_server
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
..
include HTTP Server : Close new session immediately if open_fn fails 2019-06-28 10:11:26 +00:00
src HTTP Server : Close new session immediately if open_fn fails 2019-06-28 10:11:26 +00:00
test esp_http_server : Test added to check limit on max_open_sockets config option 2019-04-08 11:22:12 +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 esp_http_server : Logging of purged data to monitor made configurable 2019-06-03 05:51:14 +00:00