Skip to content

Add usrsctp_get_timeout()#1

Merged
ibc merged 1 commit into
masterfrom
usrsctp_get_timeout
Mar 5, 2024
Merged

Add usrsctp_get_timeout()#1
ibc merged 1 commit into
masterfrom
usrsctp_get_timeout

Conversation

@ibc
Copy link
Copy Markdown
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.

1 participant