dtls icon indicating copy to clipboard operation
dtls copied to clipboard

Potential deadlock in abort

Open JoTurk opened this issue 8 months ago • 0 comments

Hi, I am currently investigating a peerConnection.Close() that hang forever in some rare case which create a leak and let a lot of buffer taking ram forever

digging deeper into it with pprof, the peerConnection.Close now default to call the association.Abort and it get stuck here: // Wait for readLoop to end <-a.readLoopCloseCh

I am still unable to reproduce the issue manually, and it may take 2 hours of spamming over 20 concurrent webrtc connections for it to happen The association.go use the dtl connection

Do you think it could be related?

Image

Originally posted by @craymond12 in #667

I think it still happens after https://github.com/pion/dtls/pull/709

JoTurk avatar May 05 '25 11:05 JoTurk