Closed jiniux closed 2 years ago
:white_check_mark: Build Fleck 0.0.64-ci completed (commit https://github.com/statianzo/Fleck/commit/bfb4a692f2 by @jiniux)
:white_check_mark: Build Fleck 0.0.64-ci completed (commit https://github.com/statianzo/Fleck/commit/bfb4a692f2 by @jiniux)
Currently, there is no way to set a custom limit for the size of incoming message. This may be something attackers can abuse to provoke a Denial of Service.
The commits add the possibility to set this limit through a
HandlerSettings
class. An exception is thrown inReceiveData
method ifpayloadLength
is greather than the specified limit.(For now, I only implemented the limit check for the Hybi13Handler. Tell me in case you think this needs to be applied to the other handlers too).