change(components/esp_http_server): add task_caps configuration

The HTTP server is not a critical component, it would be nice if we can
control the task caps by using configuration.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Harshit Malpani <harshit.malpani@espressif.com>
This commit is contained in:
Alon Bar-Lev
2023-10-31 20:59:13 +02:00
committed by Harshit Malpani
parent 1b822573b6
commit af79fe0495
5 changed files with 9 additions and 5 deletions

View File

@@ -131,6 +131,7 @@ typedef struct httpd_ssl_config httpd_ssl_config_t;
.task_priority = tskIDLE_PRIORITY+5, \
.stack_size = 10240, \
.core_id = tskNO_AFFINITY, \
.task_caps = (MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT), \
.server_port = 0, \
.ctrl_port = ESP_HTTPD_DEF_CTRL_PORT+1, \
.max_open_sockets = 4, \