Closed wesleytodd closed 8 years ago
I don't mind if length restrictions like these are left up to the user. Especially if it's going to complicate the API a lot. There are length restrictions on the DNS records in the Bonjour/Zeroconf protocol as well which I don't enforce. I'd say just ignore it for now and if it becomes a problem then deal with it then. /cc @mafintosh
@watson Im good with that! If you want to check out the changes I made see #6. Closing this.
So I was working on some of the changes I mentioned for subtypes, and there are a few error conditions we are not handling. For example:
Seems like we should validate these conditions. The question is, do we want to change the api to make the parser look async and return an error or throw errors?
Personally I hate modules that throw, BUT an async looking api seems pretty dumb here. Lastly we could NOT handle the errors and maybe publish a second module which validates multicast dns parts.