Skip to content

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented May 12, 2025

We increase the delay after which we disconnect peers that don't send their revocation (which can indicate malicious behavior or a known lnd bug). The previous 20 seconds delay was too aggressive for Tor nodes, or nodes that have large blocking file backups.

Fixes #3081

We increase the delay after which we disconnect peers that don't send
their revocation (which can indicate malicious behavior or a known lnd
bug). The previous 20 seconds delay was too aggressive for Tor nodes,
or nodes that have large blocking file backups.

Fixes #3081
@t-bast t-bast requested a review from pm47 May 12, 2025 15:48
pm47
pm47 previously approved these changes May 12, 2025
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

60 seconds seems a lot, but okay.

Note that we also have a peer-connection.ping-timeout=20s that will also lead to disconnections, but an sqlite db freeze should not prevent answering to pings.

@t-bast
Copy link
Member Author

t-bast commented May 12, 2025

Note that we also have a peer-connection.ping-timeout=20s that will also lead to disconnections, but an sqlite db freeze should not prevent answering to pings.

Good point, should we also increase this to better support Tor peers?

@pm47
Copy link
Member

pm47 commented May 12, 2025

should we also increase this to better support Tor peers?

Probably. My preference would have been to leave both values to default, but to recommend increasing them in Tor.md (with maybe a hint in reference.conf at the tor.enabled section).

@t-bast
Copy link
Member Author

t-bast commented May 13, 2025

but to recommend increasing them in Tor.md

Default values are quite sticky, even if we document that they should be changed...it doesn't hurt much to increase those timeouts IMO, I did that in the second commit.

Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough!

@t-bast t-bast merged commit f14b92d into master May 13, 2025
1 check passed
@t-bast t-bast deleted the increase-revocation-timeout branch May 13, 2025 09:27
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.

Eclair peer gets disconnected during SQLite database backups

3 participants