Timeout for headers fetch #9068

issue sipa openend this issue on November 2, 2016
  1. sipa commented at 8:12 pm on November 2, 2016: member

    When we request headers from a peer (something we do only for one peer when we’re in IBD, to avoid duplicating it), there is no timeout. If the peer we’re asking it from does not respond, we’re stuck.

    Fix this by adding a timeout, and integrating it in the block fetch timeout logic (because, when we already have outstanding block download requests, we can’t header to appear quickly).

  2. laanwj added the label P2P on Nov 2, 2016
  3. rebroad commented at 1:10 pm on November 3, 2016: contributor
    I coded this back in 2013 but it never got merged… I can rebase it if it’s now wanted…. It wasn’t a fixed timeout but was calculated based on overall latency.
  4. fanquake commented at 9:10 am on October 7, 2017: member
    Closing after #10345.
  5. fanquake closed this on Oct 7, 2017

  6. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me