-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Close PeerConnection on DTLS CloseNotify #2555
Conversation
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
5c5d4ae
to
edcf539
Compare
Would love your take @boks1971 @cnderrauber Everyone should see much faster hang ups and should more closely match browser behavior. I hope I am not making any assumptions though. |
Resolves #1767 Resolves pion/dtls#151
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sean-Der This is great. LGTM!
One curiosity question: I could not quite understand the test you added, i. e. how does it trigger the new path? It is basically the new path is going to be triggered pretty much most of the time? If yes, is there is a need for a new test (guessing existing tests would cover it).
@boks1971 The test doesn’t explicitly close both PeerConnections. It then uses the ‘leaked threads checker’ so it can’t complete until both close. I bet the new path is happening in most tests! As soon as you close a PeerConnection it sends the Close. It’s a race between that and closing both connections in each test :) |
aah, got it, thank you Sean. |
Resolves #1767
Resolves pion/dtls#151