mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 12:49:03 +00:00
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 <ricard@groundbits.com>
This commit is contained in:
parent
fc14d02ae0
commit
be43888aa5
1 changed files with 4 additions and 4 deletions
|
|
@ -51,11 +51,11 @@ config NETUTILS_MDNS_PRIORITY
|
||||||
|
|
||||||
config NETUTILS_MDNS_STACKSIZE
|
config NETUTILS_MDNS_STACKSIZE
|
||||||
int "mDNS stack size"
|
int "mDNS stack size"
|
||||||
default DEFAULT_TASK_STACKSIZE
|
default 8192
|
||||||
---help---
|
---help---
|
||||||
The default (4KiB) is adequate for simple networks but this will
|
Stack size for the mDNS responder task. 8KiB is adequate for
|
||||||
most likely need to be increased if there are many network devices
|
typical networks; increase it if many network devices send
|
||||||
attached that could send queries.
|
queries.
|
||||||
|
|
||||||
config NETUTILS_MDNS_VERBOSE
|
config NETUTILS_MDNS_VERBOSE
|
||||||
bool "Enable verbose printf output from built-in mdns demo"
|
bool "Enable verbose printf output from built-in mdns demo"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue