Skip to content

Commit 3319844

Browse files
AxelLinsuren-gabrielyan-espressif
authored andcommitted
mdns: Allow config mDNS task stack size
Signed-off-by: Axel Lin <axel.lin@gmail.com> Merges espressif/esp-idf#5216 * Original commit: espressif/esp-idf@cf7e48c
1 parent ac70c9a commit 3319844

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

components/mdns/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ menu "mDNS"
1919
higher than priorities of system tasks. Compile time warning/error
2020
would be emitted if the chosen task priority were too high.
2121

22+
config MDNS_TASK_STACK_SIZE
23+
int "mDNS task stack size"
24+
default 4096
25+
help
26+
Allows setting mDNS task stacksize.
27+
2228
choice MDNS_TASK_AFFINITY
2329
prompt "mDNS task affinity"
2430
default MDNS_TASK_AFFINITY_CPU0

components/mdns/private_include/mdns_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#define MDNS_ANSWER_AAAA_SIZE 16
5757

5858
#define MDNS_SERVICE_PORT 5353 // UDP port that the server runs on
59-
#define MDNS_SERVICE_STACK_DEPTH 4096 // Stack size for the service thread
59+
#define MDNS_SERVICE_STACK_DEPTH CONFIG_MDNS_TASK_STACK_SIZE
6060
#define MDNS_TASK_PRIORITY CONFIG_MDNS_TASK_PRIORITY
6161
#if (MDNS_TASK_PRIORITY > ESP_TASK_PRIO_MAX)
6262
#error "mDNS task priority is higher than ESP_TASK_PRIO_MAX"

0 commit comments

Comments
 (0)