Fix #2867 - #3489
Open
mojl wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3489 +/- ##
==========================================
- Coverage 86.18% 86.17% -0.01%
==========================================
Files 81 81
Lines 10479 10486 +7
==========================================
+ Hits 9031 9036 +5
- Misses 1011 1012 +1
- Partials 437 438 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
JoTurk
reviewed
Aug 6, 2026
JoTurk
left a comment
Member
There was a problem hiding this comment.
lgtm thank you, we just need to merge pion/sctp#473 first, to avoid creating a race.
Comment on lines
+156
to
+161
| if r.state == SCTPTransportStateClosed { | ||
| r.lock.Unlock() | ||
| sctpAssociation.Abort("") | ||
|
|
||
| return nil | ||
| } |
Member
There was a problem hiding this comment.
This won't close a handshake until we merge and switch to pion/sctp#473 sorry for that, I'll try to get it merged.
Author
There was a problem hiding this comment.
Oh, I wasn't aware, thanks for the review :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This fixes #2867.
Stop()now changes the state to closed always, andStart()checks the state twice, once at the start and once before allocating an association, and aborting in caseStop()was called during the handshake.Testing
The only way I could test this locally is by sleeping inside
Start().Add a hook to
sctptransport.go:And call it in line 150:
And test: