Merge branch 'bugfix/http_server_lru_v4.2' into 'release/v4.2'

esp_http_server: Update LRU counter on accepting a new connection (v4.2)

See merge request espressif/esp-idf!9350
This commit is contained in:
Mahavir Jain 2020-06-29 12:57:02 +08:00
commit 3d68e92a58

View file

@ -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;
}