This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new be43888aa netutils/mdns: raise responder stack size default to 8KiB
be43888aa is described below

commit be43888aa53d646e9919c08c57a50184be35d016
Author: Ricard Rosson <[email protected]>
AuthorDate: Sat Jul 11 06:17:53 2026 +0100

    netutils/mdns: raise responder stack size default to 8KiB
    
    CONFIG_NETUTILS_MDNS_STACKSIZE defaulted to DEFAULT_TASK_STACKSIZE,
    which resolves to as little as 2KiB on some targets.  The bundled
    mjansson responder uses a deeper stack than that (DNS record parsing
    with name decompression, plus the send/receive buffers) and overflows
    on startup, taking the board down with a hardfault before it answers a
    single query.
    
    Default to 8KiB, the value that reliably runs the responder, and
    correct the help text, which previously claimed a 4KiB default that did
    not match DEFAULT_TASK_STACKSIZE.
    
    Assisted-by: Claude (Anthropic Claude Code)
    Signed-off-by: Ricard Rosson <[email protected]>
---
 netutils/mdns/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/netutils/mdns/Kconfig b/netutils/mdns/Kconfig
index bd2003bdb..58f25acd2 100644
--- a/netutils/mdns/Kconfig
+++ b/netutils/mdns/Kconfig
@@ -51,11 +51,11 @@ config NETUTILS_MDNS_PRIORITY
 
 config NETUTILS_MDNS_STACKSIZE
        int "mDNS stack size"
-       default DEFAULT_TASK_STACKSIZE
+       default 8192
        ---help---
-               The default (4KiB) is adequate for simple networks but this will
-               most likely need to be increased if there are many network 
devices
-               attached that could send queries.
+               Stack size for the mDNS responder task.  8KiB is adequate for
+               typical networks; increase it if many network devices send
+               queries.
 
 config NETUTILS_MDNS_VERBOSE
        bool "Enable verbose printf output from built-in mdns demo"

Reply via email to