Skip to content

Identify sends multiple messages #3483

Description

@achingbrain

The identify spec says:

The protocol works by opening a stream to the remote peer you want to query, using /ipfs/id/1.0.0 as the protocol id string. The peer being identified responds by returning an Identify message and closes the stream.

go-libp2p's writeChunkedIdentifyMsg does not do this.

Instead it checks the size of the outgoing message, if it's bigger than legacyIDSize, it sends the message twice - once without the signed peer record and once with just that field in the protobuf.

This is not in the spec. Will go-libp2p be patched to be spec compliant or does the spec need updating?

Ref: libp2p/js-libp2p#3423

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