websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust
http://websockets-rs.github.io/rust-websocket/
MIT License
1.54k stars 222 forks source link

weird "websocket protocol error" #263

Open ashuralyk opened 2 years ago

ashuralyk commented 2 years ago

I got "websocket protocol error" from "recev_messages" method when the server program deployed on the Cloud, but this problem won't be seen on Native

Is there any possible ideas?

vi commented 2 years ago
  1. Do you use websocket crate for client or for server?
  2. Is it reproducible if you use tungstenite crate instead of websocket?
  3. Maybe the cloud activates WebSocket compression even when not requested by client?
  4. Maybe the cloud does not support WebSockets at all or something is misconfigured in the deployment?

As is the problem is not very addressable. Debugging may include capturing traffic (within TLS connection if it is wss://).