mDNS peer discovery stops working once a certain threshold is reached #2012
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
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 iswell 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
The text was updated successfully, but these errors were encountered: