Timeout for headers fetch #9068

issue sipa opened 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. sdaftuar cross-referenced this on May 5, 2017 from issue [P2P] Timeout for headers sync by sdaftuar
  5. fanquake commented at 9:10 AM on October 7, 2017: member

    Closing after #10345.

  6. fanquake closed this on Oct 7, 2017

  7. bitcoin 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: 2026-05-20 06:55 UTC