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 SCTP send_init/handle_init race #615

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

haaspors
Copy link
Contributor

No description provided.

These structures should never be created using defaults.
Which also makes channel senders mandatory (not Optional).
This fixes a race where read_loop may process incoming init and going to
established before send_init() is called.
@rainliu rainliu merged commit be438ed into webrtc-rs:master Oct 1, 2024
4 of 5 checks passed
tubzby pushed a commit to tubzby/webrtc-rs that referenced this pull request Nov 26, 2024
* sctp: Don't derive Default for Stream and AssociationInternal

These structures should never be created using defaults.
Which also makes channel senders mandatory (not Optional).

* sctp: Simplify association creation

* sctp: Log error for unexpected INIT

* sctp: Hold association lock when sending client init

This fixes a race where read_loop may process incoming init and going to
established before send_init() is called.
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