Skip to content

Ping: repeat requests periodically #415

@dmitry-markin

Description

@dmitry-markin

Currently, ping request is only sent once when a connection is established. As a mechanism of detecting broken connections ping only makes sense if it is repeated periodically. For example, libp2p repeats pings every 15 seconds by default. We need to do the same.

Care should be taken for ping substreams to not keep connections alive if there are no other substreams. See #414 for more info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions