http server connections reduced to 5, ttn disabled

This commit is contained in:
Bogdan Pilyugin 2023-10-04 15:59:07 +02:00
parent 1e3eb967ab
commit 610bc7c40a
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ idf_component_register(
esp_http_server
esp_eth
esp_modem
ttn-esp32
# ttn-esp32
PRIV_REQUIRES ${libespfs_PRIV_REQUIRES}

View File

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