From cf7e48c779edd84c3f99d5e8ed81027932302382 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 30 Apr 2020 14:17:50 +0800 Subject: [PATCH] mdns: Allow config mDNS task stack size Signed-off-by: Axel Lin Merges https://github.com/espressif/esp-idf/pull/5216 --- components/mdns/Kconfig | 6 ++++++ components/mdns/private_include/mdns_private.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/mdns/Kconfig b/components/mdns/Kconfig index ab5cd8012..72800aaa2 100644 --- a/components/mdns/Kconfig +++ b/components/mdns/Kconfig @@ -19,6 +19,12 @@ menu "mDNS" higher than priorities of system tasks. Compile time warning/error would be emitted if the chosen task priority were too high. + config MDNS_TASK_STACK_SIZE + int "mDNS task stack size" + default 4096 + help + Allows setting mDNS task stacksize. + choice MDNS_TASK_AFFINITY prompt "mDNS task affinity" default MDNS_TASK_AFFINITY_CPU0 diff --git a/components/mdns/private_include/mdns_private.h b/components/mdns/private_include/mdns_private.h index f572cc233..535c25f6b 100644 --- a/components/mdns/private_include/mdns_private.h +++ b/components/mdns/private_include/mdns_private.h @@ -56,7 +56,7 @@ #define MDNS_ANSWER_AAAA_SIZE 16 #define MDNS_SERVICE_PORT 5353 // UDP port that the server runs on -#define MDNS_SERVICE_STACK_DEPTH 4096 // Stack size for the service thread +#define MDNS_SERVICE_STACK_DEPTH CONFIG_MDNS_TASK_STACK_SIZE #define MDNS_TASK_PRIORITY CONFIG_MDNS_TASK_PRIORITY #if (MDNS_TASK_PRIORITY > ESP_TASK_PRIO_MAX) #error "mDNS task priority is higher than ESP_TASK_PRIO_MAX"