Skip to content

Potential deadlock in abort #710

@JoTurk

Description

@JoTurk

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 #709

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions