lnd/peer
Eugene Siegel 7556402ea4
peer: send reestablish, shutdown messages before starting writeHandler
This is to avoid a potential race on WriteMessage and Flush internals.
Because there is no locking on WriteMessage and Flush, if we allow
writeMessage calls in Start after the writeHandler has started,
the writeMessage calls may call WriteMessage/Flush at the same time
that writeMessage calls from the writeHandler does. Since there is
no locking, internals like b.nextHeaderSend can race and cause
panics.
2023-11-16 12:07:10 -05:00
..
brontide.go peer: send reestablish, shutdown messages before starting writeHandler 2023-11-16 12:07:10 -05:00
brontide_test.go peer/test: setup clean peer for each TestHandleNewPendingChannel case 2023-11-14 15:45:19 -05: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
musig_chan_closer.go lnwallet: fix taproot co-op close nonce bug 2023-08-22 16:33:50 -07:00
ping_manager.go peer: Add machinery to track the state and validity of remote pongs 2023-10-19 09:26:45 -07:00
ping_manager_test.go peer: Add machinery to track the state and validity of remote pongs 2023-10-19 09:26:45 -07:00
test_utils.go input+wallet: extract musig2 session management into new module 2023-08-22 16:30:39 -07:00