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

客户端重连问题 #379

Open
mippo520 opened this issue Nov 25, 2022 · 1 comment
Open

客户端重连问题 #379

mippo520 opened this issue Nov 25, 2022 · 1 comment

Comments

@mippo520
Copy link

大神,请教一下,如果客户端断开之后重连了,客户端新建的kcp对象但是ip和端口跟上一次是相同的,那服务端如何判断这时候发上来的包是新的连接而不是前一次连接的.

@elderhammer
Copy link

如果你的客户端新建 KCP 对象时会随机一个新的 conv,那么判断 ip:port 对得上,但 conv 对不上就认为是新的会话。

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