From 610bc7c40af08d7bb40d0a565a4488d4f9c817f5 Mon Sep 17 00:00:00 2001 From: bogd Date: Wed, 4 Oct 2023 15:59:07 +0200 Subject: [PATCH] http server connections reduced to 5, ttn disabled --- CMakeLists.txt | 2 +- src/HTTPServer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19706ad..84a4013 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,7 @@ idf_component_register( esp_http_server esp_eth esp_modem - ttn-esp32 +# ttn-esp32 PRIV_REQUIRES ${libespfs_PRIV_REQUIRES} diff --git a/src/HTTPServer.c b/src/HTTPServer.c index 271d202..8aace3c 100644 --- a/src/HTTPServer.c +++ b/src/HTTPServer.c @@ -426,9 +426,9 @@ static httpd_handle_t start_webserver(void) { httpd_handle_t server = NULL; httpd_config_t config = HTTPD_DEFAULT_CONFIG(); - // config.lru_purge_enable = true; + config.lru_purge_enable = true; config.uri_match_fn = httpd_uri_match_wildcard; - // config.max_open_sockets = 3; + config.max_open_sockets = 5; config.stack_size = (4096 + 1024); // Start the httpd server