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

Test usrsctp with usrsctp_get_timeout() #1351

Draft
wants to merge 1 commit into
base: v3
Choose a base branch
from
Draft

Conversation

ibc
Copy link
Member

@ibc ibc commented Mar 5, 2024

Details

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.
  • Extra MS_DUMP() added for debugging. Must be removed.
  • This PR should not be merged until super tested and NOT before this issue is solved: Multi-thread bug when using usrsctp in N Worker threads in Rust #1352
  • Most consider this: Fix usrsctp usage in Rust #1353 (comment)

### 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.
@ibc ibc requested a review from jmillan March 5, 2024 12:47
@ibc ibc mentioned this pull request Mar 7, 2024
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