From 25d79ca572cf6b92ead9fa45a9cb9579cb0bd092 Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Fri, 18 Nov 2022 23:19:24 +0100 Subject: [PATCH] Original project changes: mdns: task stack size configuration (MDNS_TASK_STACK_SIZE) --- 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 5c97d65f4..c7ee8e5fc 100644 --- a/components/mdns/Kconfig +++ b/components/mdns/Kconfig @@ -10,4 +10,10 @@ menu "mDNS" the maximum amount of services here. The valid value is from 1 to 64. + config MDNS_TASK_STACK_SIZE + int "mDNS task stack size" + default 4096 + help + Allows setting mDNS task stacksize. + endmenu diff --git a/components/mdns/private_include/mdns_private.h b/components/mdns/private_include/mdns_private.h index a7383c03d..653eae622 100644 --- a/components/mdns/private_include/mdns_private.h +++ b/components/mdns/private_include/mdns_private.h @@ -52,7 +52,7 @@ #define MDNS_ANSWER_SDPTR 0x80 #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 // Stack size for the service thread #define MDNS_PACKET_QUEUE_LEN 16 // Maximum packets that can be queued for parsing #define MDNS_ACTION_QUEUE_LEN 16 // Maximum actions pending to the server #define MDNS_TXT_MAX_LEN 1024 // Maximum string length of text data in TXT record