snapview / tokio-tungstenite

Future-based Tungstenite for Tokio. Lightweight stream-based WebSocket implementation
MIT License
1.88k stars 236 forks source link

WebSocket protocol error: Connection reset without closing handshake. #296

Closed rosejober closed 1 year ago

rosejober commented 1 year ago

I am using tokio-tungstenite version 0.17.2 with the "rustls-tls-webpki-roots" feature enabled to establish a connection. Sometimes, after successfully connecting and receiving three or four packets, I encounter the error message "WebSocket protocol error: Connection reset without closing handshake." Additionally, the connection is reset within a minute after receiving the error. After waiting for a minute, if I attempt to reconnect, the same situation occurs again.