mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 17:55:36 +01:00
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. |
||
---|---|---|
.. | ||
brontide.go | ||
brontide_test.go | ||
interfaces.go | ||
log.go | ||
musig_chan_closer.go | ||
ping_manager.go | ||
ping_manager_test.go | ||
test_utils.go |