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
客户端使用v4.39.2或v4.40.0,grpc断开连接后无法自行恢复连接,必须手动重启客户端。 #1059
Comments
Temporarily fix it by reverting related commits. You may use this forked repo. |
我也有遇到相同的问题, |
I am aware this issue, I will create a fix to redress this issue. |
测试了一下,861d6be 确实解决了这个问题,感谢! |
那个修复又引入了别的问题,我等下发一个更新请再测试一下 v4.41.0 的情况。非常感谢。 |
测试了 |
OK, 非常感谢 |
It is important to use a detached context when creating shared transport connections that will outlive the initializing connection. Otherwise, once the original initializing connection is cancelled, the transport connection will be cancelled as well. This issue will be addressed in v5 by providing a transport session storage that also reduce the usage of globalDialerMap and other global variables.
你正在使用哪个版本的 V2Ray?
测试了以下组合:
服务端:v4.39.2,客户端:v4.39.2;
服务端:v4.38.3,客户端:v4.38.3;
服务端:v4.38.3,客户端:v4.39.2;
服务端:v4.38.3,客户端:v4.40.0;
服务端:v4.40.0,客户端:v4.38.3;
服务端:v4.40.0,客户端:v4.39.2;
服务端:v4.40.0,客户端:v4.40.0。
你的使用场景是什么?
服务端:nginx反代v2ray,开启tls,传输方式为grpc,传输协议为vmess(aead)。
客户端:使用chrome / firefox,利用v2rayN观看YouTube、GitHub和Google等网页。
你看到的异常现象是什么?
1、使用一段时间之后(几十分钟到半天不等),所有被代理的网页均无法打开。并且日志出现大量报错(具体报错内容见后文),重启客户端或重新选择节点后可以恢复正常。
2、经测试,在前面列出的多个组合当中,所有 客户端为v4.39.2或v4.40.0 的组合,在使用过程中reboot服务器,可以100%复现该问题。
3、经测试,在前面列出的多个组合当中,所有 客户端为v4.38.3 的组合均无法复现该问题(即该问题不存在或被解决)。
(使用这几个版本组合进行测试的原因参考这一issue:#1056 ,怀疑是同一原因所致)
你期待看到的正常表现是怎样的?
1、和其他传输方式或v4.38.3版本一致,能正常使用下去,不需要频繁手动重启客户端。
2、使用过程中reboot服务器之后,待服务器重启完毕,客户端可以自动恢复正常连接,不需要手动重启客户端。
请附上你的配置
服务端配置:
客户端配置:
请附上出错时软件输出的错误日志
服务器端错误日志:
断开连接之后服务端nginx和v2ray均无相关日志产生。
客户端错误日志:
请附上访问日志
断开连接之后服务端nginx和v2ray均无相关日志产生。
其它相关的配置文件(如 Nginx)和相关日志
nginx的location部分的配置文件。
如果 V2Ray 无法启动,请附上
--test
命令的输出如果 V2Ray 服务运行异常,请附上 journal 日志
The text was updated successfully, but these errors were encountered: