Skip to content

Commit 9e7074d

Browse files
JoonlineAshish285
authored andcommitted
fix(http_server): Corrected initialization value for lru_counter at http session creation
Closes #17470
1 parent e6f9459 commit 9e7074d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/esp_http_server/src/httpd_sess.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ esp_err_t httpd_sess_new(struct httpd_data *hd, int newfd)
208208
session->handle = (httpd_handle_t) hd;
209209
session->send_fn = httpd_default_send;
210210
session->recv_fn = httpd_default_recv;
211+
session->lru_counter = hd->lru_counter;
211212

212213
// increment number of sessions
213214
hd->hd_sd_active_count++;

0 commit comments

Comments
 (0)