ソースを参照

esp_http_server: Update LRU counter on accepting a new connection

Closes https://github.com/espressif/esp-idf/issues/3851
Shubham Kulkarni 5 年 前
コミット
4b41f19a01
1 ファイル変更2 行追加0 行削除
  1. 2 0
      components/esp_http_server/src/httpd_main.c

+ 2 - 0
components/esp_http_server/src/httpd_main.c

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