wankdanker / node-discover

Automatic and decentralized discovery and monitoring of nodejs instances with built in support for a variable number of master processes, service advertising and channel messaging.
229 stars 59 forks source link

Advertising > 1218 characters #20

Closed thekevinscott closed 8 years ago

thekevinscott commented 8 years ago

When my service foo advertises with a payload greater than 1218 characters (I'm stringifying the object to get the length) it seems that d.added doesn't get triggered from other services. Is there some maximum character limit I'm running up against?

wankdanker commented 8 years ago

Yeah, you are probably hitting the limit of the UDP payload on your network. This module doesn't handle re-combining messages yet. :( So, if the message ends up getting split into two or more packets then the receiving side will not be able to parse the full message.

thekevinscott commented 8 years ago

Got it, thanks for the info; this is all happening locally on OS X El Capitan, if that's any help.

For my purposes I can stay under the limit. Thanks for a great library!