discovery: use a single server reflexive and relay local candidate
authorFabrice Bellet <fabrice@bellet.info>
Wed, 26 Feb 2020 19:46:56 +0000 (20:46 +0100)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Mon, 14 Dec 2020 19:13:21 +0000 (19:13 +0000)
commita85b17c78242849ccac83ae8c18ffd8de940e5eb
tree3ae8e2b0ac13cffe73955e4cc13896403fb01a4e
parent3144e58c003e852d0c7709efb430dd73594ef698
discovery: use a single server reflexive and relay local candidate

The rationale with this patch is that an agent running on a multihomed
host have no gain to store multiple identical server reflexive and relay
local candidates (those obtained by a stun bind request sent from each
local interface). The stun requests that use the same default route are
all expected to provide the same answer.

This patch should keep intact the ICE conncheck versatility, and
drastically improve the conncheck time to completion, as the number of
checked pairs is reduced.
agent/discovery.c