TrippyLighting / EthernetBonjour

Bonjour Library for Arduino & Teensyduino
53 stars 46 forks source link

MDNS message length limited to 550 #20

Closed Zuroy closed 2 years ago

Zuroy commented 2 years ago

When trying to register a service with TXT record if the message length exceeds 550 the packet results to be malformed (using wireshark) . I tried to search inside the code where this "maximum length" could be declared but I did not find anything.

DeltaCore commented 2 years ago

Can you provide some source code so we can reproduce the issue? What board are you using?

Zuroy commented 2 years ago

I'm using the Portenta H7 board. The library works perfectly with messages not longer than 550. The code is the same as the example provided and works flawlessly with shorter messages.

Zuroy commented 2 years ago

To solve this problem it is necessary to change LINE 30 of MbedUdp.h to increase the size. More details here: https://forum.arduino.cc/t/ethernetbonjour-mdns-message-length-limited-to-550/911968/2