Dont treat a timer tick as no_connection_possible and log 2020-02-ping-connection-possible
authorMatt Corallo <git@bluematt.me>
Mon, 24 Feb 2020 23:47:38 +0000 (18:47 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 27 Feb 2020 20:46:52 +0000 (15:46 -0500)
commitde24150203a7866b34cd090ebda07ad9fbd59f35
tree3b66b41d3db6957163557ae786465e71f76f8e31
parent440129c6b6552b2c17852e13246a2561cb216ad2
Dont treat a timer tick as no_connection_possible and log

In testing, due to other patches, I managed to flood the send queue
with messages and cause us not to be able to send pings, thus
getting a peer disconnected for ping timeout. To my surprise, this
also force-closed all of my channels with that peeer.

Obviously a ping timeout does not indicate that no future connection
with said peer will be possible, and we shouldn't be force-closing
channels as a result.

This also logs when a peer is disconnected to ping timeout to make
debug easier.
lightning/src/ln/peer_handler.rs