Skip to content

agent: Enable both UDP and TCP to the same TURN server

Previously if we enabled both UDP and TCP to the same TURN server, the TCP connection would not work. What happened was that when traffic was targeted at the TCP connection we would fail to route the traffic to the right socket due to a too early jump out of the loop searching for the socket. The search would stop when finding a TURN server matching the address of the incoming message source. Thus, a UDP TURN server with the same address as the TCP TURN server would effectively mean that traffic got routed to a different stun agent that would complain about receiving responses without matching requests.

Merge request reports