lnd/peer
Olaoluwa Osuntokun ddf551f16d htlcswitch: add new LinkFailureDisconnect action
In this commit, we add a new LinkFailureDisconnect action that'll be
used if we detect that the remote party hasn't sent a revoke and ack
when it actually should.

Before this commit, we would log our action, tear down the link, but
then not actually force a connection recycle, as we assumed that if the
TCP connection was actually stale, then the read/write timeout would
expire.

In practice this doesn't always seem to be the case, so we make a strong
action here to actually force a disconnection in hopes that either side
will reconnect and keep the good times rollin' 🕺.
2023-05-23 14:23:05 -07:00
..
brontide_test.go peer: retry enabling channels on ErrEnableInactiveChan 2023-01-18 03:46:16 +08:00
brontide.go htlcswitch: add new LinkFailureDisconnect action 2023-05-23 14:23:05 -07:00
interfaces.go htlcswitch+peer: CreateAndAddLink in switch, add messageSwitch to peer 2021-08-10 17:15:52 -04:00
log.go multi: remove peer.go, change all references to point to peer pkg 2020-07-06 19:16:07 -04:00
test_utils.go peer: skip retrying when reenableTimeout is greater than 1 min 2023-01-18 03:46:17 +08:00