Skip to content

p2p: Unify Connection stopping #3833

@brapse

Description

@brapse

The current connection stopping logic is stop between OnStop FlushStop and stopServices methods which depend on a set of channel to coordinate. This schema comes with significant complexity and bugs when it comes to cleaning up the connection related resources.

A better solution would be to insist that all requests are flushed and adhere to the interface provided in BaseService and enable the proper interpretation of service.IsRunning()

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:p2pComponent: P2P pkg

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions