Skip to content

Reduce the number of timer ticks a peer is allowed to take #1348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

TheBlueMatt
Copy link
Collaborator

In 2d3a210, we increased the
default ping timer in lightning-background-processor to ten
seconds from five. However, we didn't change the timer count at
which we disconnect peers if they're not responding, which we
likely should have done. We do so here, as well as update the
documentation for PeerManager::timer_tick_occurred to suggest
always ticking the timer every ten seconds instead of five.

In 2d3a210, we increased the
default ping timer in `lightning-background-processor` to ten
seconds from five. However, we didn't change the timer count at
which we disconnect peers if they're not responding, which we
likely should have done. We do so here, as well as update the
documentation for `PeerManager::timer_tick_occurred` to suggest
always ticking the timer every ten seconds instead of five.
@codecov-commenter
Copy link

codecov-commenter commented Mar 7, 2022

Codecov Report

Merging #1348 (252280d) into main (0e0aabe) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1348   +/-   ##
=======================================
  Coverage   90.57%   90.57%           
=======================================
  Files          72       72           
  Lines       40082    40082           
=======================================
  Hits        36306    36306           
  Misses       3776     3776           
Impacted Files Coverage Δ
lightning/src/ln/peer_handler.rs 48.41% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e0aabe...252280d. Read the comment docs.

@TheBlueMatt TheBlueMatt merged commit 2bba1d4 into lightningdevkit:main Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants