Skip to content

Handle SCTP events fairly #10

Open
@lgrahl

Description

@lgrahl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions