bugfix/mdns_stack_config: Add configuration option for MDNS Stacksize

Added a Kconfig option to configure the MDNS task stack size.
This commit is contained in:
Supreet Deshpande
2018-10-22 11:55:09 +05:30
parent 4c8e0459d6
commit 6055daf258
2 changed files with 10 additions and 1 deletions

View File

@ -17,5 +17,14 @@ config MDNS_MAX_SERVICES
services to be open at the same time conserves memory. Specify services to be open at the same time conserves memory. Specify
the maximum amount of services here. The valid value is from 1 the maximum amount of services here. The valid value is from 1
to 64. to 64.
config MDNS_STACKSIZE
int "Max stack size of MDNS"
range 2048 4096
default 4096
depends on ENABLE_MDNS
help
The stacksize of the MDNS task that will be responsible for transmitting
and receiving MDNS packets.
endmenu endmenu

View File

@ -52,7 +52,7 @@
#define MDNS_ANSWER_SDPTR 0x80 #define MDNS_ANSWER_SDPTR 0x80
#define MDNS_SERVICE_PORT 5353 // UDP port that the server runs on #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_STACKSIZE // Stack size for the service thread
#define MDNS_PACKET_QUEUE_LEN 16 // Maximum packets that can be queued for parsing #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_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 #define MDNS_TXT_MAX_LEN 1024 // Maximum string length of text data in TXT record