We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
全局消息是用65535的数组来做一个环形的缓存队列,但是gmsgId一直都是++,在用完65535的时候是不是得重置为0从头开始,包括取消息(r *msgQue) getGMsg中r.gmsgId++也是。 在wsserver测试实例中调整这个数组为var gmsgArray = [10]*gMsg{},全局聊天10个消息后就会异常了。
The text was updated successfully, but these errors were encountered:
我并不想解释无符号溢出后会从0开始这件事
Sorry, something went wrong.
No branches or pull requests
全局消息是用65535的数组来做一个环形的缓存队列,但是gmsgId一直都是++,在用完65535的时候是不是得重置为0从头开始,包括取消息(r *msgQue) getGMsg中r.gmsgId++也是。
在wsserver测试实例中调整这个数组为var gmsgArray = [10]*gMsg{},全局聊天10个消息后就会异常了。
The text was updated successfully, but these errors were encountered: