Skip to content

Commit 0ec5096

Browse files
shubhamkulkarni97espressif-bot
authored andcommitted
esp_http_server: Update LRU counter on accepting a new connection
Closes espressif/esp-idf#3851
1 parent 398b6a5 commit 0ec5096

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/esp_http_server/src/httpd_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ static esp_err_t httpd_accept_conn(struct httpd_data *hd, int listen_fd)
6767
close(new_fd);
6868
return ESP_FAIL;
6969
}
70+
httpd_sess_update_lru_counter(hd->hd_sd->handle, new_fd);
71+
7072
ESP_LOGD(TAG, LOG_FMT("complete"));
7173
return ESP_OK;
7274
}

0 commit comments

Comments
 (0)