summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2023-05-16 17:38:26 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2023-05-16 17:38:26 +0200
commitf456747e778c6b84b51d80def18b9320074c015c (patch)
tree3e15c5fbdcb435242055ff9b6b516f709bebbee1
parentf3688cf286be5776e04204b742a176926079983f (diff)
downloadlibnice-master.tar.gz
agent: set consent timeout to value specified in RFC 7675HEADmaster
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.
-rw-r--r--agent/agent-priv.h2
1 files changed, 1 insertions, 1 deletions
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 */