-
Notifications
You must be signed in to change notification settings - Fork 160
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
ICE Agent can not be restarted when gathering #280
Comments
@jech This is really just a deficiency of I think it will just take a careful design concurrency wise. Before that improvement lands you can just not allow a restart until the nil candidate has been emitted. |
I've implemented a workaround (different than the one you suggest), so this is no longer urgent. |
How the ICE Restart Should Work: Right now the Restart method in agent.go attempts to restart ICE gathering, but if that agent's gatheringstate == GatheringStateGathering, the Restart method returns. Instead, the Restart method should cancel the gathering processes running in gather.go by running a.gatherCandidateCancle() like here in gather.go, Let me know if that sounds good! |
@Sean-Der what happend to that pull request? |
In recent versions of the Unnamed SFU, the client will restart ICE whenever the connection's ICE state goes into failed. I'm occasionally getting the following error:
It happens somewhere in the code that handles incoming offers; I'd need to add more detailed logging in order to know which exact function triggers the error. How do I avoid this problem?
The text was updated successfully, but these errors were encountered: