I use gateway The version is 2020.0.1, It's used in communication websocket. It was used well , It turned out that something unusual happened one day :Max frame length of 65536 has been exceeded. If you read the wrong information in the newspaper, you know it's because websocket The frame of is more than the default 65536 Limit , This limitation can be found in this class in the source code reactor.netty.http.websocket.WebsocketSpec You can see it in the picture . I didn't want to solve it mysel.... Solve the problem of Max frame length of 65536 has been exceeded in websocket of spring cloud gateway webflux
WebSocket简介 1)、WebSocket是一种在单个TCP连接上进行全双工通信的协议。 2)、WebSocket使得客户端和服务器之间的数据交换变得更加简单,允许服务端主动向客户端推送数据。 3)、WebSocket API中,浏览器和服务器只需要完成一次握手,两者之间就直接可以创建持久性的连接,并进行双向数据传输。 全双工:通信允许数据在两个方向上同时传输,全双工指可以同时(瞬时)进行信号的双向传输(A→B且B→A)。指A→B的同时B→A,是瞬时同步的。 WebSocketClient.h class WebSocketClient : public QThread { Q_OBJECT public: WebSocketClient(); ~WebSocketClient(); protected: virtual void run(); public: // 启动连接 - 必须把url地址 协议头 设置完成后再启动 bool startConnect(); // 断开连接 void disconnect(); //设置链接的URL void setConnectUr.... 有更新! Qt实现QWebSocket客户端,断线重连 qt