From f456747e778c6b84b51d80def18b9320074c015c Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 16 May 2023 17:38:26 +0200 Subject: agent: set consent timeout to value specified in RFC 7675 Using a value of 10 seconds instead of 30 as specified, along with the request interval of 4 to 6 seconds, meant the connection state could go to failed when a single response was missing or delayed. --- agent/agent-priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/agent-priv.h b/agent/agent-priv.h index 4ac7739..e72eed9 100644 --- a/agent/agent-priv.h +++ b/agent/agent-priv.h @@ -107,7 +107,7 @@ nice_input_message_iter_compare (const NiceInputMessageIter *a, #define NICE_AGENT_TIMER_TA_DEFAULT 20 /* timer Ta, msecs (impl. defined) */ #define NICE_AGENT_TIMER_TR_DEFAULT 25000 /* timer Tr, msecs (impl. defined) */ #define NICE_AGENT_TIMER_CONSENT_DEFAULT 5000 /* msec timer consent freshness connchecks (RFC 7675) */ -#define NICE_AGENT_TIMER_CONSENT_TIMEOUT 10000 /* msec timer for consent checks to timeout and assume consent lost (RFC 7675) */ +#define NICE_AGENT_TIMER_CONSENT_TIMEOUT 30000 /* msec timer for consent checks to timeout and assume consent lost (RFC 7675) */ #define NICE_AGENT_TIMER_MIN_CONSENT_INTERVAL 4000 /* msec timer minimum for consent lost requests (RFC 7675) */ #define NICE_AGENT_TIMER_KEEPALIVE_TIMEOUT 50000 /* msec timer for keepalive (without consent checks) to timeout and assume conection lost */ #define NICE_AGENT_MAX_CONNECTIVITY_CHECKS_DEFAULT 100 /* see RFC 8445 6.1.2.5 */ -- cgit v1.2.1