From c9ee6d0576e6a3b9d7760a96f516606c01906b69 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 21 Jul 2025 22:44:26 -0700 Subject: [PATCH] [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). --- src/core/config/dns_client.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/config/dns_client.h b/src/core/config/dns_client.h index f11173cfc..67ad96465 100644 --- a/src/core/config/dns_client.h +++ b/src/core/config/dns_client.h @@ -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 /**