esp-idf/components
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
..
app_trace Rename Kconfig options (components/app_trace) 2019-05-21 09:32:55 +02:00
app_update Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
asio Rename Kconfig options (root) 2019-05-21 09:09:01 +02:00
bootloader Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
bootloader_support Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
bt Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
coap components: update with build system changes 2019-05-13 19:59:17 +08:00
console components: update with build system changes 2019-05-13 19:59:17 +08:00
cxx Rename Kconfig options (root) 2019-05-21 09:09:01 +02:00
driver Merge branch 'feature/spi_slave_support_hal' into 'master' 2019-05-22 13:42:11 +08:00
efuse Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
esp32 esp_wifi: fix some WiFi bugs 2019-05-22 22:18:05 +08:00
esp_adc_cal Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
esp_common Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
esp_event esp_event: check that event data is prepared properly 2019-05-22 11:30:27 +08:00
esp_http_client Merge branch 'feature/esp-https-ota-basic-auth' into 'master' 2019-05-10 12:39:14 +08:00
esp_http_server HTTP Server : Close new session immediately if open_fn fails 2019-05-28 08:49:02 +00:00
esp_https_ota esp_https_ota: Add support for URL redirection, basic auth and more control with new APIs 2019-04-29 18:58:07 +05:30
esp_https_server HTTP Server: Added ability to select core 2019-03-21 11:22:58 +08:00
esp_ringbuf ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
esp_rom components: update with build system changes 2019-05-13 19:59:17 +08:00
esp_wifi wifi bugfixs: 2019-05-24 11:23:16 +08:00
esp-tls esp-tls: Add support to add CN from config and validate PEM buffers 2019-05-17 20:06:44 +05:30
espcoredump components: update with build system changes 2019-05-13 19:59:17 +08:00
esptool_py Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
ethernet Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
expat components: update with build system changes 2019-05-13 19:59:17 +08:00
fatfs Merge branch 'feature/remove_dependency_to_soc' into 'master' 2019-04-18 08:08:41 +08:00
freemodbus Rename Kconfig options (components/freemodbus) 2019-05-21 09:09:01 +02:00
freertos Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
heap Rename Kconfig options (root) 2019-05-21 09:09:01 +02:00
idf_test mbedtls: Add AES-CBC performance test 2019-05-21 12:41:40 +10:00
jsmn components: update with build system changes 2019-05-13 19:59:17 +08:00
json components: update with build system changes 2019-05-13 19:59:17 +08:00
libsodium components: update with build system changes 2019-05-13 19:59:17 +08:00
log Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
lwip Rename Kconfig options (components/ethernet) 2019-05-21 09:09:01 +02:00
mbedtls Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
mdns mdns: fixed mdns crashing on reception of txt packet without a corresponding service 2019-05-03 16:37:43 +02:00
mqtt mqtt tests: adding weekend test for mqtt library to exercise publishing/receiving different data and references esp-mqtt commits to pass these tests 2019-03-22 11:37:26 +01:00
newlib Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
nghttp nghttp: move HAVE_CONFIG_H compile definition to component 2019-05-23 18:39:31 +08:00
nvs_flash Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
openssl Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
partition_table Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
protobuf-c protobuf-c : Added Google's protocol buffer C library as sub-module 2018-10-02 19:07:28 +05:30
protocomm Rename Kconfig options (components/bt) 2019-05-21 09:09:01 +02:00
pthread Rename Kconfig options (components/pthread) 2019-05-21 09:09:01 +02:00
sdmmc Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
smartconfig_ack cmake: make main a component again 2018-09-11 09:44:12 +08:00
soc Merge branch 'feature/spi_slave_support_hal' into 'master' 2019-05-22 13:42:11 +08:00
spi_flash Rename Kconfig options (components/bootloader) 2019-05-21 09:32:55 +02:00
spiffs components: update with build system changes 2019-05-13 19:59:17 +08:00
tcp_transport tcp_transport: reading http header in a chunked mode until header terminator received (or timeout) to correctly receive all header if fragmented 2019-05-20 16:40:03 +02:00
tcpip_adapter Rename Kconfig options (components/tcpip_adapter) 2019-05-21 09:09:01 +02:00
ulp Merge branch 'feature/use_cmake_function_call_for_embedding_ulp' into 'master' 2019-05-27 13:14:09 +08:00
unity Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
vfs Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
wear_levelling global: move the soc component out of the common list 2019-04-16 13:21:15 +08:00
wifi_provisioning wifi_provisioning : context pointer added to wifi_config_t structure and related examples/docs updated 2019-02-15 10:45:34 +00:00
wpa_supplicant components: update with build system changes 2019-05-13 19:59:17 +08:00
xtensa components: update with build system changes 2019-05-13 19:59:17 +08:00