Skip to content

Commit 7c5a561

Browse files
committed
Merge branch 'bugfix/http_server_lru' into 'master'
esp_http_server: Update LRU counter on accepting a new connection Closes IDFGH-1594 See merge request espressif/esp-idf!9345
2 parents d02edc2 + 0ec5096 commit 7c5a561

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)