WebSocket 1009 Max frame length of 65536 has been exceeded 问题
项目中使用Spring Cloud Gateway 作为网关,代理WebScoket通信,当请求数据量很大的时候,会出现 1009问题。
onClosing, code = 1009, reason = Max frame length of 65536 has been exceeded.
public final class CloseStatus implements Serializable {
/**
* "1009 indicates that an endpoint is terminating the connection because it has
* received a message that is too big for it to process."
*/
public static final

在Spring Cloud Gateway项目中遇到WebSocket通信时的1009错误,原因是帧长度超过65536。通过查阅资料和源码,发现在较高版本的Gateway中有配置选项可以解决此问题。只需在Spring Cloud和Spring Boot的配置中进行相应设置,并调整WebSocket服务的配置,即可成功处理大数据量请求。

2298

被折叠的 条评论
为什么被折叠?



