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.
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.