Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set new remote credentials after restarting ICE (fixes #2672) #2729

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

lminiero
Copy link
Member

@lminiero lminiero commented Jul 7, 2021

As explained in #2672, apparently new versions of libnice reset the remote credentials after invoking nice_agent_restart: since when receiving updated offers that include a restart we first reset the credentials, and then trigger the restart, this actually results in broken sessions, since the restart ends up not having access to remote credentials for the new STUN exchanges. This patch should address that. Notice this only changes the "browser offering the restart" scenario, since when it's Janus offering a restart, we already perform nice_agent_restart first, and then get the new remote credentials in an answer later on. That said, it might be a good idea to make sure that still does indeed work even for newer versions of libnice.

Despite the very small change, it's a PR and not a commit since I want to make sure this doesn't introduce regressions for restarts in current versions of libnice, so please test and provide feedback.

@lminiero
Copy link
Member Author

Merging.

@lminiero lminiero merged commit 67b7774 into master Jul 15, 2021
@lminiero lminiero deleted the ice-restart-credentials branch July 15, 2021 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant