Skip to content

p2p: seed_mode sometimes fails to send pexAddrsMessage before disconnecting gracefully #2092

@ebuchman

Description

@ebuchman

When SeedMode is true, the PexReactor sends a batch of addresses and calls StopPeerGracefully. It seems sometimes the peer ends up disconnecting before these messages are delivered, which makes it difficult for a new node to join the network.

It looks like we don't call .flush() in the MConnection.OnStop(). I tried adding that on the seed node, but even still the new node sometimes fails to receive any addresses from the seed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:p2pComponent: P2P pkgT:bugType Bug (Confirmed)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions