Merge branch 'bugfix/mdns_stack_config' into 'master'

bugfix/mdns_stack_config: Add configuration option for MDNS Stacksize

See merge request sdk/ESP8266_RTOS_SDK!570
This commit is contained in:
Wu Jian Gang
2018-10-23 21:54:53 +08:00
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
the maximum amount of services here. The valid value is from 1
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

View File

@ -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_STACKSIZE // 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