Merge branch 'contrib/github_pr_17470_v5.5' into 'release/v5.5'

fix(http_server): Corrected initialization value for lru_counter at h… (GitHub PR) (v5.5)

See merge request espressif/esp-idf!42061
This commit is contained in:
Mahavir Jain
2025-09-24 07:54:12 +05:30

View File

@@ -207,6 +207,7 @@ esp_err_t httpd_sess_new(struct httpd_data *hd, int newfd)
session->handle = (httpd_handle_t) hd;
session->send_fn = httpd_default_send;
session->recv_fn = httpd_default_recv;
session->lru_counter = hd->lru_counter;
// increment number of sessions
hd->hd_sd_active_count++;