ice icon indicating copy to clipboard operation
ice copied to clipboard

Transport protocol not being obeyed

Open mloehnig opened this issue 4 years ago • 0 comments

Your environment.

  • Version: 2.1.7
  • Browser: Chrome Version 89.0.4389.114 (Official Build) (64-bit)
  • Coturn: debian/4.5.2-3
  • Firewall: UDP not allowed

What did you do?

Using the latest version of coturn implementation with the no-udp flag specified and a strict firewall preventing UDP traffic one would observe that the ice candidate gathering takes 5 seconds. After some investigation I found that the transport=tcp flag was not being obeyed within the gatherCandidatesSrflx function.

What did you expect?

When transport=tcp is specified only TCP connections are established to the stun/turn server.

What happened?

When transport=tcp is specified there is an attempt to connect to the stun/turn server using UDP and in my particular case caused ICE gathering to take 5 seconds to complete.

Potential solution

https://github.com/pion/ice/pull/366

mloehnig avatar May 04 '21 02:05 mloehnig