Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProtocolError断开连接后,重连上服务器后,消息可以发送到服务端,但是服务端无法发送到客户端 #673

Open
BruceQiu1996 opened this issue Aug 14, 2023 · 1 comment

Comments

@BruceQiu1996
Copy link

ProtocolError的原因是我在报文里放了一个图片转换后的base64编码,图片大概2M左右,导致报文长度过长,后来我选择在报文里返回图片的id,再由客户端根据图片id去api里寻找图片。ProtocolError问题就没有了。
但是我发现我的程序在上面的情况导致的ProtocolError之后,我的客户端自动重连上服务端后,无法接收来自服务端的消息了,也没有任何报错。服务端仍旧可以接收到客户端的消息。

@kerryjiang
Copy link
Owner

不像是SuperSocket的问题,服务器上这个连接建立成功的log都没有吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants