-
Notifications
You must be signed in to change notification settings - Fork 8
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
Consider supporting userland SCTP-stack (libusrsctp) #1
Comments
I haven't heard about usrsctp. It sounds really interresting. What is the stability of usrsctp if you know ? I see that it has not reached 1.0 yet ! Also, would it not worth it to drop linux kernel sctp support and only keep usrsctp, even if I like the idea to let the users choose the underlying implementation to use? Probably there is some different performances between kernel and user space implementations ? SctpDrv is absolutely unstable, and I only succeeded in getting blue screens in Windows 7. I'll probably remove SctpDrv from sctp-sys in favor to usrsctp. |
I've just looked into it again and the sight in the land of SCTP is quite a grim one:
I've took a diff of usrsctp.h* from three years ago (r8000) and the current master: https://gist.github.com/qrlpx/dcda562f20e5cef47268
I'm no expert in this, but I doubt it. I thought more of: 1. make use of system configurations; 2. don't bundle more than you need. But considering the above points, that'd actually only be the case for FreeBSD. So, summarizing: It seems like it would only make sense to make use of the systems implementation if:
So yea,
seems like a reasonable decision. Albeit I would keep the sctp-sys crate just for the sake of it. *edit: forgot to mention what I took the diff of. |
Just to give a update, I've been playing a bit with libusrsctp and made a draft rust binding to it. It was working on linux (but need sctp to be disabled in kernel), but I never succeeded in making it work in windows. |
i, too think that libusrsctp is the way to go, even dropping the native/kernel support is not a big price. |
@phsym would it be possible to share your branch of libusrsctp? Thanks! |
@phsym any updates? |
@iqualfragile Nope sorry |
you said you had some draft code, can you share that so people can build on top of it? |
As noted in sctp-sys's Readme, support of SCTP is across the board quite spotty.
Linux & BSD-distros take their sweet time to support the newest SCTP-features and on Windows, SctpDrv is also supposed to be quite wonky, I hear?
libusrsctp is feature complete, supports all major OS and is used by both Firefox and Chromium.
It might be a good idea to allow the users of rust-sctp to choose between which stack/implementation to use.
This might entail:
The text was updated successfully, but these errors were encountered: