whiteblock / hobbits

Hobbits is a lightweight wire protocol for ETH 2.0 network testing purposes.
MIT License
25 stars 17 forks source link

Add body max size #33

Closed atoulme closed 5 years ago

atoulme commented 5 years ago

Secure Scuttlebutt uses 4096 bytes maximum size for message bodies. We should do the same here.

n8wb commented 5 years ago

I don't believe that a limit should be imposed in the protocol. However, if we add it as a feature, it should at least be optional, and the amount defined by the user. Such as how HTTP is often implemented, technically having no limit on its body, but often times capped at 2GB. My reasoning is simply that there may be unforeseen use cases and that we should keep this level of the protocol as simple as possible. This gives the implementer/user more freedom, and prevents the potential issue of users having to work around the protocol.

zscole commented 5 years ago

@atoulme, I agree with @n8wb on this one. Is there a particular reason a max size should be implemented? Is this to prevent overflow?

atoulme commented 5 years ago

OK let's keep this out for now.