Micronaut Web 套接字客户端:超出最大帧长度
Micronaut web socket client: max frame length exceeded
我正在使用 micronaut 框架中的内置网络套接字客户端 (@ClientWebSocket)。当使用大消息时,客户端失败并终止连接。抛出以下错误:
17:59:47.153 [nioEventLoopGroup-1-2] ERROR i.m.h.c.w.NettyWebSocketClientHandler - Unexpected Exception in WebSocket [my.package.WebSocket$Intercepted@79698b5f]: Max frame length of 65536 has been exceeded.
io.netty.handler.codec.http.websocketx.CorruptedWebSocketFrameException: Max frame length of 65536 has been exceeded.
有没有办法增加最大帧长度或跳过太长的消息?
我试图在 application.yml 中设置 max-frame-length 但这没有用。
最大帧长度可通过 OnMessage
注释配置。参见 https://docs.micronaut.io/latest/api/io/micronaut/websocket/annotation/OnMessage.html#maxPayloadLength--
我正在使用 micronaut 框架中的内置网络套接字客户端 (@ClientWebSocket)。当使用大消息时,客户端失败并终止连接。抛出以下错误:
17:59:47.153 [nioEventLoopGroup-1-2] ERROR i.m.h.c.w.NettyWebSocketClientHandler - Unexpected Exception in WebSocket [my.package.WebSocket$Intercepted@79698b5f]: Max frame length of 65536 has been exceeded.
io.netty.handler.codec.http.websocketx.CorruptedWebSocketFrameException: Max frame length of 65536 has been exceeded.
有没有办法增加最大帧长度或跳过太长的消息? 我试图在 application.yml 中设置 max-frame-length 但这没有用。
最大帧长度可通过 OnMessage
注释配置。参见 https://docs.micronaut.io/latest/api/io/micronaut/websocket/annotation/OnMessage.html#maxPayloadLength--