In Netty 4.0.x the default frame size for the WebSocketServerProtocolHandler is 65536 byte but you can set it as high as you want. The WebSocket protocol limits the size to 18,446,744,073,709,551,615 bytes. Is there a reason for that low frame size? Are DDOS-Attacks a reason for that behavior?
My Netty stack is as follows:
HttpServerCodec
HttpContentCompressor
HttpContentDecompressor
HttpObjectAggregator(65536)
WebSocketServerProtocolHandler(...,65536)
...
Should I rather set the HttpObjectAggregator size to 18,446,744,073,709,551,615 to avoid the TooLongFrameException and leave the WebSocketServerProtocolHandler to 65536? What is best practice?