Open lenaky opened 2 years ago
@lenaky Does https://github.com/pion/sctp/pull/236 solve your issue?
@mafredri sorry for late. I didn't fix this issue and I'll check and let u know ur PR work for me. thanks!
@mafredri On behalf of @lenaky, I apply your PR to check this issue. It seems that the issue does not reappear with some modification which I left in yours. Thanks for your work!
Your environment.
What did you do?
I got goroutine leak from our system which is based on ion-sfu.
As you can see,
Stream.ReadSCTP
hangs while waiting for signal atStream.readNotifier
. at that moment association and dataChannel have been already closed.I presume while
SCTPTransport.Start
is in progress,Association.readLoop
is closed andAssociation.unregisterStream
which is defer action does not affect ifAssociation.OpenStream
not called yet.I don't know exactly what causes this. I think may be It happens when peerConnection closed while data channel connection is being established.
What did you expect?
What happened?