Skip to content

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
@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.

3 participants