Skip to content

[ipfs/go-bitswap] Reevaluate MessageQueue dial logic #123

Description

@dirkmc

Currently the MessageQueue will wait up to 10 minutes for a dial to a peer to succeed:
https://github.com/ipfs/go-bitswap/blob/5030b8dd39738778c2cc621a1d7b35cca010ba28/internal/messagequeue/messagequeue.go#L471-L477

However IIUC we only ever try to send messages to peers that we are already connected to.

Proposal:

  • remove the retry logic in MessageQueue
  • if the dial times out, remove the peer from the session

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions