libp2p / libp2p/go-libp2p

swarm: should backoff on timeout

Open
#1,552 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
6.9k
Forks
1.3k
Avg merge
13d 21h
Merged PRs (30d)
1

Description

In fixing libp2p/go-libp2p-kad-dht#96, we introduced a bug: we now *don't* backoff when the context is canceled. Unfortunately, this means we don't backoff if we timeout.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the swarm timeout and context-cancellation handling, then compare the behavior described in libp2p/go-libp2p-kad-dht#96. Done means timeout paths apply backoff while intentional context cancellation retains the current behavior; no file or test is named, so locate the relevant implementation and coverage first.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.