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

怎么判断KCP包是否被运营商拦截? #22

Open
klarkxy opened this issue Nov 22, 2021 · 1 comment
Open

怎么判断KCP包是否被运营商拦截? #22

klarkxy opened this issue Nov 22, 2021 · 1 comment

Comments

@klarkxy
Copy link

klarkxy commented Nov 22, 2021

目前预想的是这样,同时建立TCP链接和KCP链接,如果通过KCP发送不成功,就切回TCP继续发送。
请问这个大概怎么做可以实现?

@limpo1989
Copy link
Owner

不要依赖TCP的连接建立来判断连接成功与否,而是通过应用层消息来决定(握手消息+Ping保活消息)来决定连接是否存活,这样不管是TCP还是KCP都可以一视同仁的处理

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