OVMS3-idf/components
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
..
app_trace Merge branch 'doc/cleanup_apptrace2host_example' into 'master' 2019-02-15 17:06:57 +08:00
app_update make: fix undefined variables warning for PARTITION_TABLE_BIN 2019-04-23 14:42:14 +08:00
asio cmake: make main a component again 2018-09-11 09:44:12 +08:00
aws_iot Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
bootloader remove secure boot test mode 2019-06-14 14:37:02 +05:30
bootloader_support remove secure boot test mode 2019-06-14 14:37:02 +05:30
bt Merge branch 'feature/btdm_add_ble_link_timeout_config_v3.3' into 'release/v3.3' 2019-06-19 14:47:31 +08:00
coap cmake: separate app from idf lib project 2018-11-27 13:59:24 +08:00
console console/linenoise: support buffered stdout 2019-03-15 11:31:22 +08:00
cxx cmake: separate app from idf lib project 2018-11-27 13:59:24 +08:00
driver unit-test-app: freertos_compliance config added 2019-06-25 04:33:32 +00:00
efuse efuse: Fix unused variable warning when NDEBUG 2019-05-08 09:41:49 +08:00
esp-tls Add esp_tls_init_global_ca_store function to esp-tls, called from esp_tls_set_global_ca_store 2019-01-14 08:25:56 +00:00
esp32 power_management: port*_CRITICAL vanilla FreeRTOS compliance 2019-06-25 04:33:32 +00:00
esp_adc_cal Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
esp_event Merge branch 'feature/predictable_event_dispatch_via_duplication' into 'master' 2019-02-05 08:47:03 +08:00
esp_http_client Merge branch 'backport/bugfix_url_redirect_v33' into 'release/v3.3' 2019-05-03 14:15:33 +08:00
esp_http_server HTTP Server : Close new session immediately if open_fn fails 2019-06-28 10:11:26 +00:00
esp_https_ota esp_http_client: add support for using certs from global ca store 2019-02-27 14:19:06 +05:30
esp_https_server https_server : Missing uri_match_fn paramater added to default config 2019-02-25 09:13:39 +00:00
esp_ringbuf Initialized some uninitialized variables in rtc_clk.c and ringbuf.c. 2019-01-23 16:47:23 +05:30
espcoredump esp32: coredump header (fix linker.lf) 2019-03-08 09:49:37 +00:00
esptool_py esp_tool: Exclude elf-sha256 from bootloader 2019-03-20 12:19:23 +08:00
ethernet add promiscuous mode control in emac driver 2019-05-10 12:56:24 +08:00
expat cmake: Add support for test build 2018-10-20 12:07:24 +08:00
fatfs Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
freemodbus freemodbus: change critical sections to semaphore mutex 2019-03-07 09:59:40 +01:00
freertos unit-test-app: freertos_compliance config added 2019-06-25 04:33:32 +00:00
heap heap: Add integer overflow checks on MALLOC_CAP_32BIT & MALLOC_CAP_EXEC 2019-03-20 18:30:25 +11:00
idf_test test: modify test cases for bluedroid (backport v3.3) 2019-06-25 23:18:34 +08:00
jsmn cmake: make main a component again 2018-09-11 09:44:12 +08:00
json cJSON: update to v1.7.11 2019-05-10 10:26:04 +08:00
libsodium Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
log Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
lwip lwip:fix dns bug for 3.3 2019-06-13 19:36:55 +08:00
mbedtls mbedtls: Add UTs for modexp 2019-06-26 14:19:40 +08:00
mdns mdns: fix possible crash when probing on particular interface with duplicated service instances due to naming conflicts on network 2019-03-13 16:10:27 +01:00
micro-ecc cmake: make main a component again 2018-09-11 09:44:12 +08:00
mqtt Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
newlib newlib: Fix adjtime 2019-04-24 17:42:20 +08:00
nghttp cmake: make main a component again 2018-09-11 09:44:12 +08:00
nvs_flash nvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly 2019-04-14 06:23:38 +00:00
openssl Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
partition_table bootloader: Add support of anti-rollback 2019-02-14 18:51:43 +08:00
protobuf-c protobuf-c : Added Google's protocol buffer C library as sub-module 2018-10-02 19:07:28 +05:30
protocomm protocomm_ble : Fixed custom service UUID support 2019-06-03 08:26:48 +00:00
pthread pthread: Transform the units of the stack size to the FreeRTOS domain 2019-02-27 12:21:23 +01:00
sdmmc cmake: Add support for test build 2018-10-20 12:07:24 +08:00
smartconfig_ack cmake: make main a component again 2018-09-11 09:44:12 +08:00
soc soc: Add some headers into gpio_periph.h 2019-05-29 13:37:22 +08:00
spi_flash spi_flash: Fix Kconfig indentation 2019-06-13 07:55:40 +02:00
spiffs Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
tcp_transport esp_http_client: add support for using certs from global ca store 2019-02-27 14:19:06 +05:30
tcpip_adapter modify the behavior for dhcpserver and tcpip_adapter: 2019-03-11 12:11:05 +08:00
ulp cmake: Fix for Python files executed directly, not via PYTHON variable 2019-03-12 13:31:44 +08:00
unity Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
vfs VFS: Allocate socket select semaphore outside ISR 2019-05-06 16:11:59 +02:00
wear_levelling Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01: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 wps: add overlap event (backport v3.3) 2019-06-06 13:33:03 +08:00
xtensa-debug-module tools: implement linker script generation 2018-11-16 12:42:02 +08:00