Skip to content

Conversation

@TheBlueMatt
Copy link
Collaborator

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.

@TheBlueMatt TheBlueMatt added this to the 0.0.11 milestone Feb 27, 2020
This should make peer disconnection easier to debug.
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.
@TheBlueMatt TheBlueMatt force-pushed the 2020-02-ping-connection-possible branch from ca0c723 to de24150 Compare February 27, 2020 20:47
@TheBlueMatt TheBlueMatt merged commit 80a0d15 into lightningdevkit:master Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants