Max frame length of 65536 has been exceeded
已超过最大帧长65536。报错源码:WebSocket08FrameDecoder#decode,消息长度超过配置65535字节,可通过配置 netty-websocket.maxFramePayloadLength=100000 来覆盖 ServerEndpoint#maxFramePayloadLength 中的默认值
received a frame that is not masked as expected
收到一个未按预期掩码的帧。报错源码:WebSocket08FrameDecoder#decode,
//如果不允许缺失掩码 并且 客户端又没有掩码 则报错
if (!allowMaskMismatch && expectMaskedFrames != frameMasked) {
protocolViolation(ctx, "received a frame that is not masked as expected");
return;
}
部分参考:https://blog.51cto.com/u_11868971/5063146