-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Add KCP(UDPSession) as a transport for v2ray, reslove #162 #170
Conversation
…KcpConfig.AdvancedConfig == nil
…fig, jsonConfig.KcpConfig.AdvancedConfig == nil>
KCP连接不会自行关闭,如果proxy声明支持KCP,应该自行调用Close。 未来的proxy如果想使用KCP协议,需要双向同时调用Close |
我先看一下失败的测试 |
我这里测试通过,不知道是什么原因。。。 |
在检测问题 |
a8792b2 is the first bad commit
:040000 040000 6c82ef1fa81091b0dfe30afb3125c5f9b2bda670 515f79c71edff5e1e84d6d535abb2d048fd6eecd M transport |
我暂时无法确定到底是哪里出了问题。 |
https://github.com/xiaokangwang/v2ray-core/blob/kcptransport/transport/config_json.go#L27 你没有判断 jsonConfig.KcpConfig = nil |
你是通过什么看出来的? |
Travis 的 log 里面有: /home/travis/gopath/src/github.com/v2ray/v2ray-core/transport/config_json.go:27 +0x106 |
日志太多,眼花了😂 |
VMess AEAD will be used when alterId is 0
TCP连接在高延迟,高带宽,较高丢包环境下,不能有效利用带宽。目前TCP连接下的VMess协议在这种网络环境下速度缓慢,甚至出现连接超时错误。
KCP可以更加有效的利用带宽降低延迟,很大程度上减少因为恶劣的网络环境导致的连接不稳。
通过提高代理连接的速度,可以有效的改善使用v2ray的体验。
新增加了一部分API,请查看 #162 了解详情。
需要注意的是:引入了 github.com/xtaci/kcp-go 库, 这个库的API的稳定性值得怀疑,在合并时可以考虑将该库的地址替换为V2ray可以有效控制的地址。