]> git.feebdaed.xyz Git - 0xmirror/quic-go.git/commit
fix deadlock when closing the Transport (#5220)
authorsukun <sukunrt@gmail.com>
Tue, 24 Jun 2025 11:55:42 +0000 (17:25 +0530)
committerGitHub <noreply@github.com>
Tue, 24 Jun 2025 11:55:42 +0000 (13:55 +0200)
commitcf97a0a39c7fcd90ef0b8f78be772e284873a0b6
tree1de8ed81e764ae4c76be1d327af02ee6e7a2dcd4
parent92aa7b41d54a66ebbc6e817e2e8d3f69619f8764
fix deadlock when closing the Transport (#5220)

* transport: fix deadlock on close

The lock ordering is Transport.mutex before connMx. This deadlocks
some times in tests.
For the latest one:
https://github.com/libp2p/go-libp2p/actions/runs/15534001571/job/43728863965?pr=3305

* remove connMx

* release mutex for server close

* Update server.go

---------

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
server.go
transport.go