Commit ad884734 authored by Michael Olbrich's avatar Michael Olbrich Committed by Olivier Crête

conncheck: don't disable keepalive on TCP if it's explicitly enabled

This makes it possible to enable keepalive for TCP candidates. It is useful
to detect disappearing peers or network failures faster.
parent b257672b
......@@ -1340,8 +1340,9 @@ static gboolean priv_conn_keepalive_tick_unlocked (NiceAgent *agent)
if (component->selected_pair.local != NULL) {
CandidatePair *p = &component->selected_pair;
/* Disable keepalive checks on TCP candidates */
if (p->local->transport != NICE_CANDIDATE_TRANSPORT_UDP)
/* Disable keepalive checks on TCP candidates unless explicitly enabled */
if (p->local->transport != NICE_CANDIDATE_TRANSPORT_UDP &&
if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE ||
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