Skip to content

Disconnected context in the identify protocol #1030

@MichaelMure

Description

@MichaelMure

Unless I'm missing something, the identify protocol should inherit from the host's context, which would then ensure that its main loop end when the host is terminated.

At the moment this main loop is left running after the host's context get cancelled.

See https://github.com/libp2p/go-libp2p/blob/master/p2p/protocol/identify/id.go#L130

Metadata

Metadata

Assignees

Labels

exp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)status/readyReady to be worked

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions