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

Handle SCTP events fairly #10

Open
lgrahl opened this issue Mar 10, 2018 · 0 comments
Open

Handle SCTP events fairly #10

lgrahl opened this issue Mar 10, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@lgrahl
Copy link
Member

lgrahl commented Mar 10, 2018

The SCTP socket is a virtual socket. Thus, fd_set cannot be used for it and it cannot be registered on the event loop itself. A normal file descriptor would only raise one event and then the other descriptors have a chance to raise events, too. The virtual SCTP socket is not being polled but calls a handler function to indicate that events should be handled. Currently, we read those events in a loop which leads to monopolisation of SCTP events in comparison to other file descriptors.

https://github.com/rawrtc/rawrtc/tree/fair-multiple-sctp-events is outdated but has a solution for this problem. However, there were some timing issues and the implementation in general lead to poor performance.

@lgrahl lgrahl added the enhancement New feature or request label Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant