From f97751712fcc4c8438f021082be80d6cfc465721 Mon Sep 17 00:00:00 2001 From: Shubham Kulkarni Date: Thu, 25 Jun 2020 18:30:22 +0530 Subject: [PATCH] esp_http_server: Update LRU counter on accepting a new connection Closes https://github.com/espressif/esp-idf/issues/3851 --- components/esp_http_server/src/httpd_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_http_server/src/httpd_main.c b/components/esp_http_server/src/httpd_main.c index 8d5e9eef9..daa52c312 100644 --- a/components/esp_http_server/src/httpd_main.c +++ b/components/esp_http_server/src/httpd_main.c @@ -67,6 +67,8 @@ static esp_err_t httpd_accept_conn(struct httpd_data *hd, int listen_fd) close(new_fd); return ESP_FAIL; } + httpd_sess_update_lru_counter(hd->hd_sd->handle, new_fd); + ESP_LOGD(TAG, LOG_FMT("complete")); return ESP_OK; }