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

测试用例中GateWayCase的BUG和改正方法 #18

Open
mayao11 opened this issue Nov 19, 2020 · 1 comment
Open

测试用例中GateWayCase的BUG和改正方法 #18

mayao11 opened this issue Nov 19, 2020 · 1 comment

Comments

@mayao11
Copy link

mayao11 commented Nov 19, 2020

Gateway测试用例中,客户端发送的字符串为"HelloHe...",而收到的是一段Base64编码的字符串,内容完全不同。
经查,原因在GateWayCase.cs中

SocketData函数中
`
List<byte[]> buffList = new List<byte[]>();

        buffList.Add(Encoding.ASCII.GetBytes(data.buffer));

        message.Buffers = buffList;`

改为
`
List<byte[]> buffList = new List<byte[]>();

        buffList.Add(Convert.FromBase64String(data.buffer));

        message.Buffers = buffList;`

即可。
(本来想提PR,但网络代理有点问题速度太慢)

@Manistein
Copy link
Owner

感谢你的反馈,此bug已修复,7c635983faade2ddc8ba07ad7289295d2f8e5757。
SparkServer目前已经在我们的slg项目上使用,经过几次压测,性能表现满足项目需要,能够直接使用客户端战斗逻辑,为服务端节约了战斗开发的人力资源。

@mayao11 mayao11 closed this as completed Nov 25, 2020
@mayao11 mayao11 reopened this Nov 26, 2020
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