Commit acb95943 authored by Olivier Crête's avatar Olivier Crête

agent: Make keepalive connchecks timeout of faster

With 7 retries, it took almost a minute to timeout from 500ms,
so start at 200ms instead.
parent f524b656
......@@ -109,6 +109,8 @@ nice_input_message_iter_compare (const NiceInputMessageIter *a,
#define NICE_AGENT_TIMER_TR_MIN 15000 /* timer Tr, msecs (ICE ID-19) */
#define NICE_AGENT_MAX_CONNECTIVITY_CHECKS_DEFAULT 100 /* see spec 5.7.3 (ID-19) */
#define NICE_AGENT_KEEPALIVE_DEFAULT_TIMEOUT 200 /* Start at 200ms, then doube 6 times for a total of 25.4s */
/* An upper limit to size of STUN packets handled (based on Ethernet
* MTU and estimated typical sizes of ICE STUN packet */
......@@ -680,7 +680,7 @@ static gboolean priv_conn_keepalive_tick_unlocked (NiceAgent *agent)
agent, buf_len, p->keepalive.stun_message.buffer);
if (buf_len > 0) {
stun_timer_start (&p->keepalive.timer, STUN_TIMER_DEFAULT_TIMEOUT,
stun_timer_start (&p->keepalive.timer, NICE_AGENT_KEEPALIVE_DEFAULT_TIMEOUT,
agent->media_after_tick = FALSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment