mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 20:57:47 +00:00
[dns-client] increase default response timeout to 7 seconds (#11741)
This commit increases the default DNS response timeout config, `OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_RESPONSE_TIMEOUT`, to 7000 milliseconds. The default value of 7000 is selected to be longer than the six-second wait time for queries resolved by the Discovery Proxy (per RFC 8766, Section 5.6, first bullet).
This commit is contained in:
@@ -134,9 +134,12 @@
|
||||
* @def OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_RESPONSE_TIMEOUT
|
||||
*
|
||||
* Specifies the default wait time that DNS client waits for a response from server (in milliseconds).
|
||||
*
|
||||
* The default value of 7000 is selected to be longer than the six-second wait time for queries resolved by the
|
||||
* Discovery Proxy (per RFC 8766, Section 5.6, first bullet).
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_RESPONSE_TIMEOUT
|
||||
#define OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_RESPONSE_TIMEOUT 6000
|
||||
#define OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_RESPONSE_TIMEOUT 7000
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user