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
sukunrt
changed the title
circuit v2: relay service not cleaned up properly close
circuit v2: relay service not cleaned up properly on close
Mar 2, 2023
There is a race condition between
and
if relay.Close() is called around handleReserve execution at:
https://github.com/libp2p/go-libp2p/blob/master/p2p/protocol/circuitv2/relay/relay.go#L181
if relay.Close acquires the lock it'll untag the peers and cancel the background goroutine running the gc.
Then handleReserve will add the reservation and tag the peer with conn manager.
The text was updated successfully, but these errors were encountered: