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

Add usrsctp_get_timeout() #1

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Add usrsctp_get_timeout() #1

merged 1 commit into from
Mar 5, 2024

Conversation

ibc
Copy link
Member

@ibc ibc commented Mar 5, 2024

Same as PR sctplab#591 by @oleavr in upstream project which has been ignored for 4 years.

A little change: Instead of using int to hold a uint32_t (or -1) let's use a int64_t.

Same as PR sctplab#591 by @oleavr in upstream project which has been ignored for 4 years.

A little change: Instead of using `int` to hold a `uint32_t` (or -1) let's use a `int64_t`.
@ibc ibc merged commit 4f9b838 into master Mar 5, 2024
@ibc ibc deleted the usrsctp_get_timeout branch March 5, 2024 12:09
ibc added a commit to versatica/mediasoup that referenced this pull request Mar 5, 2024
### Details

- Related task: #1011. Note that usrsctp author never cared about the existing PR so we are on our own.
- So I've forked usrctp, added the `usrsctp_get_timeout()` feature and released version 0.9.6.0: versatica/usrsctp#1
- And I've made `usrsctp.wrap` point to it.

### Notes

- It would be great to have a way to pass `sctp_debug=true` when building usrsctp Meson subproject so it defines `SCTP_DEBUG` (needed in `DepUsrSCTP.cpp` to show SCTP debug). An manual alternative is to edit `meson.build` of usrsctp and add it unconditionally.
- I'm calling `HandleUsrSctpTimers()` everytime the timer fires (of course), also in `onSendSctpData` callback and also when SCTP data is received (in `SctpAssociation::ProcessSctpData()`. Not sure if correct.
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.

None yet

1 participant