接收端报了这个错误:websocket: close 1002 (protocol error): Received Continuation frame, while there is nothing to continue.
最后发现是接收端设置的read缓存太小了,导致解析数据帧不连续。把缓存调大就好了。
websocket 1002 error问题
最新推荐文章于 2024-12-23 16:25:13 发布
接收端报了这个错误:websocket: close 1002 (protocol error): Received Continuation frame, while there is nothing to continue.
最后发现是接收端设置的read缓存太小了,导致解析数据帧不连续。把缓存调大就好了。