[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:
Abtin Keshavarzian
2025-07-21 22:44:26 -07:00
committed by GitHub
parent 6a6afd8da4
commit c9ee6d0576
+4 -1
View File
@@ -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
/**