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
KCP.java中update方法第一行将Long强转为int类型 this.current = (int) current; 外部传入的是毫秒时间戳,这里强转为int类型,导致current变为负数,进而导致后续的rto计算全部失效。 看了c版本的kcp代码都是long类型的,这改为int是如何考虑的?上述问题应该如何解决?
The text was updated successfully, but these errors were encountered:
同样出现这个问题, KcpOnUdp.java 202行,导致update 不执行了。
用maven 的1.2.6的版本会出现这个问题,就是 KcpOnUdp 197行, needUpdate ==true,但在flush方法里,updated == 0 直接return了。而时间转为int 变为负数,所以update 也执行不了
而最新源代码,去掉了 updated 的这个判断,所以 可以执行发送了。 但这个修改未发布到最新 maven里
Sorry, something went wrong.
应该是同一个问题吧?@tidus5 这个应该是你pr里面提到的吧?
No branches or pull requests
KCP.java中update方法第一行将Long强转为int类型
this.current = (int) current;
外部传入的是毫秒时间戳,这里强转为int类型,导致current变为负数,进而导致后续的rto计算全部失效。
看了c版本的kcp代码都是long类型的,这改为int是如何考虑的?上述问题应该如何解决?
The text was updated successfully, but these errors were encountered: