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 Callback ordering for ConnectionState #702

Merged
merged 2 commits into from
Jun 11, 2024
Merged

Fix Callback ordering for ConnectionState #702

merged 2 commits into from
Jun 11, 2024

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Jun 9, 2024

This is already fixed on master. I've cherry picked 2 commits: d17be4d & 67cc918

Since pion/webrtc/v3 depends on pion/ice/v2 it'd be nice if we can have a v2 release with these two commits.

Before we launched a goroutine to announce every ConnectionState change
to users. These could then be sent to the user out of order.

This commit adds a connectionStateNotifier. The connectionStateNotifier
delivers them sequentially to the user.

Resolves #624
Deliver Candidates and Selected CandidatePairs using the same queue.
This means that things are delivered in order and we don't have to worry
about blocking
@Sean-Der
Copy link
Member

Sean-Der commented Jun 9, 2024

LGTM!

I’m a week out from new version of DTLS. New major version of WebRTC is next.

excited to get off old versions

@sukunrt
Copy link
Member Author

sukunrt commented Jun 10, 2024

Thanks @Sean-Der. Looking forward to webrtc v4. 🎉

@sukunrt
Copy link
Member Author

sukunrt commented Jun 10, 2024

@Sean-Der Can I merge this and cut a new release?

@Sean-Der
Copy link
Member

Go for it @sukunrt ! Thanks for doing it :)

@sukunrt sukunrt merged commit 3cdd012 into v2 Jun 11, 2024
5 of 10 checks passed
@sukunrt sukunrt deleted the v2-candidate-order branch June 11, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants