I need to handle large websocket frames, but I get an exception:
io.netty.handler.codec.CorruptedFrameException: Maxframelengthof10240hasbeenexceeded.
atio.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder.protocolViolation(WebSocket08FrameDecoder.java:412)
atio.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder.decode(WebSocket08FrameDecoder.java:277)
atio.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502)
atio.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441)
atio.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
atio.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)
atio.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
atio.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)
atio.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1478)
atio.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1227)
atio.netty.handler.ssl.SslHandler.decode(SslHandler.java:1274)
atio.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502)
atio.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441)
atio.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
atio.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)
atio.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
atio.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
atio.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
atio.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:682)
atio.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:617)
atio.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:534)
atio.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
atio.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:906)
atio.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
atio.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
atjava.lang.Thread.run(Thread.java:748)
How can I solve this problem?
I need to handle large websocket frames, but I get an exception:
How can I solve this problem?