Skip to content

mDNS peer discovery stops working once a certain threshold is reached #2012

@achingbrain

Description

@achingbrain

mDNS peer discovery works by making a broadcast query for _p2p._udp.local services. Peers respond with their multiaddrs.

The number of multiaddrs a peer has affects the size of the UDP message being sent as the mDNS response.

Once this message hits a certain size the multicast-dns module fails to decode the message. The message size this occurs at is well under the maximum size for a mDNS response message - turns out there's a hard length limit for mDNS TXT answers and certain addresses such as circuit relay over WebTransport can exceed this limit and cause parsing failures.

Refs: mafintosh/multicast-dns#85

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions