ICE warmup

connectivitynetwork

The connection has been delayed due to a cold warm up of the ICE connectivity.

Description

Due to network complexity or issues in the application, only host candidate(s) may be received through the icecandidate event. Depending on the network topology, this may fail the connection process.

In this case, an ICE restart is needed to gather more candidates and retry the ICE connectivity checks.

If the connection succeeds because more candidates have been received, this may indicate that the connection process needs to be investigated to avoid this churn and speed-up the connection.

What do we do here?

We check for the following pattern:

  • We got only “host” candidates
  • The iceconnectionstate goes to “failed”
  • We got at least one “srflx” or one “relay”. Then we mark an observation