mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
In this commit, we make all calls to disconnect after a ping/pong violation is detected in the `PingManager` async. We do this to avoid circular waiting that may occur if the disconnect call back ends up waiting on the peer goroutine to be torn down. If this happens, then the peer goroutine will be blocked on the ping manager fully tearing down, which is blocked on the peer disconnect succeeding. This is a similar class of issue we've delt with recently as pertains to the peer and the server: sync all back execution must not lead to a circular waiting loop. Fixes #8379 |
||
---|---|---|
.. | ||
brontide.go | ||
brontide_test.go | ||
interfaces.go | ||
log.go | ||
musig_chan_closer.go | ||
ping_manager.go | ||
ping_manager_test.go | ||
test_utils.go |