miniFrank

Results 4 comments of miniFrank

棒,很不错的归纳和总结!

io.netty.handler.codec.http.websocketx.WebSocketClientHandshakeException: Invalid handshake response getStatus: 200 ------------------------------- 我本地启动了3.4.0的gateway和nacos,并未出现该异常。 【异常分析】 1. 看下websocket的协议协商过程: ![image](https://user-images.githubusercontent.com/3614917/232274745-9f2fcdfd-b298-499b-ab67-9e52d48a0885.png) ![image](https://user-images.githubusercontent.com/3614917/232274750-28b7bfea-1fa1-4e0b-8581-523c9e44e16a.png) HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo= Sec-WebSocket-Protocol: chat 2. 这个异常发生在websocket通道完成握手阶段,在完成握手之前会对响应体进行一系列的校验。代码如下: `java public final...

> Connection prematurely closed BEFORE opening handshake is complete. 可以参考下:https://github.com/reactor/reactor-netty/issues/1678