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
客户端建立连接后,发送 ByteBuf bb = Unpooled.buffer(128); int N = 9000; for (int i = N; i > 0; i-=4) { bb.writeInt(i); } tc.send(bb);
调试发现 server 的 Kcp.java 的 peekSize 总是走到 if (rcv_queue.size() < seq.frg + 1) { return -1; }
The text was updated successfully, but these errors were encountered:
大概找到原因了,首先是默认的Netty 设置,缓冲区不够长,导致发送9000多字节后可能出现丢失。 然后KcpOnUdp.java 的update() 方法,时间戳转换为 int, 导致变成负数。 所以,超时补发也失效了。
希望作者修复这里 时间转为int的bug
Sorry, something went wrong.
@tidus5 已经把你的pr合并了。
No branches or pull requests
客户端建立连接后,发送
ByteBuf bb = Unpooled.buffer(128);
int N = 9000;
for (int i = N; i > 0; i-=4) {
bb.writeInt(i);
}
tc.send(bb);
调试发现 server 的 Kcp.java 的 peekSize 总是走到
if (rcv_queue.size() < seq.frg + 1)
{
return -1;
}
The text was updated successfully, but these errors were encountered: