You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes. Accept implicitly closes the listener on error via sendErrAndClose and the shutdown cleanup func explicitly closes it. I think this should just be an error and not a panic.
originally reported here:
ipfs/kubo#9693
The sequence of events that causes this is:
list.Accept
errors here https://github.com/libp2p/go-libp2p/blob/v0.26.4/p2p/net/swarm/swarm_listen.go#L129and error in list.Accept has closed the listener accept loop already here:
https://github.com/libp2p/go-libp2p/blob/v0.26.4/p2p/transport/quic/virtuallistener.go#L108-L120
with
sendErrAndClose
The defer cleanup in swarm_listen closes
virtuallistener
here https://github.com/libp2p/go-libp2p/blob/master/p2p/net/swarm/swarm_listen.go#L117which causes panic here: https://github.com/libp2p/go-libp2p/blob/v0.26.4/p2p/transport/quic/virtuallistener.go#L73
as it checks for entry from
muxer
map which was removed bysendErrAndClose
The text was updated successfully, but these errors were encountered: