Repository navigation
Stabilize ICE-lite priorities across address families - #1059
Closed
cnderrauber wants to merge 1 commit into
Closed
cnderrauber wants to merge 1 commit into
cnderrauber wants to merge 1 commit into
Conversation
Keeps each family's priorities stable across gather order and single/dual-stack nodes while retaining unique priorities.
JoTurk
reviewed
Nov 9, 2026
Member
There was a problem hiding this comment.
I don't think this behavior is described in the spec, in fact we should prune previous state, this fix feels like a work around hack:
An ICE agent MAY restart ICE for existing data streams. An ICE
restart causes all previous states of the data streams, excluding the
roles of the agents, to be flushed.
what we should do is that we should stabilize our priority algorithm like libwebrtc, the original PR fixed another regression made by #959 which made connections fail if a pair has multiple lite candidates.
Member
I'll open a PR to do that! |
Member
|
@cnderrauber please check #1060 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Livekit regress on migration after updates to v4.4.8 which contains the change #968. When the client migrate to another node by ice-restart, the new node could generate a lower priority candidate than the selected one on old node, though they are the same family. Since the old selected candidate is still alive in migration case, causing Chrome to prune the new target and leave migration waiting for ICE nomination.
@davidzhao Found the root case and fix it by reserve odd local-preference slots for IPv6 and even slots for IPv4. This keeps each family's priorities stable across gather order and single/dual-stack nodes while retaining unique priorities