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

fix: better reconnection logic & safety #204

Merged
merged 9 commits into from
Sep 29, 2023
Merged

Conversation

theomonnom
Copy link
Member

@theomonnom theomonnom commented Sep 27, 2023

  • Refactor session reconnection
    • We now have access to the current RtcSession even when reconnecting. (Because it is not locked while reconnecting).
      This allow us to get the PC stats at whatever moment. This also change the fact that multiple operations can happens at the same time (send_data, create a new sender, remove a sender).
      Some operations doesn't require the reconnection to be finished (e.g removing a sender)
  • RtcSession is not an Option anymore (Always present but can't be in a unconnected state)

The pattern is done in a manner where you can't do actions on a RtcSession without thinking about the reconnection logic

@theomonnom theomonnom changed the title fix: reconnection races fix: better reconnection logic & safety Sep 28, 2023
@theomonnom theomonnom merged commit 05a2d83 into main Sep 29, 2023
0 of 14 checks passed
@theomonnom theomonnom deleted the theo/refactor-reconnection branch September 29, 2023 04:07
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.

2 participants