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

Shadowsocks-qt5延迟检测问题 #1

Open
FacelessManipulator opened this issue Nov 14, 2017 · 1 comment
Open

Shadowsocks-qt5延迟检测问题 #1

FacelessManipulator opened this issue Nov 14, 2017 · 1 comment

Comments

@FacelessManipulator
Copy link
Member

最近在使用shadowsocks-qt5链接学校ssserver的时候发现由于教育网网络问题,服务端的socket会被关闭,也就是说难以维持长链接。而shadowsocks-qt5完全没有考虑到这种异常情况,当长连接被重置的时候,它还会一直尝试通过已经被重置的socket检测服务端的心跳,并且并没有尝试重连。只有在转发包或者手动测试延迟的时候才会进行重连操作。
这样的后果是:

  1. 会一直有连接错误的提示,然而服务端其实是可用的,只是无法维持长链接
  2. 当错误日志积累到一定的程度,shadowsocks-qt5偶尔会异常退出,这个bug很难复现,每当打log的时候都不会出现这个异常,而正常使用的时候这个bug又会发生
    shadowsocks-qt5-schoolvps.log
@FacelessManipulator FacelessManipulator changed the title Shadowsocks-qt5逻辑问题 Shadowsocks-qt5延迟检测问题 Nov 14, 2017
@FacelessManipulator
Copy link
Member Author

社区已经注意到闪推问题,并且我也不知道有没有人正在尝试修复,有兴趣的可以跟进一下,问题描述:
shadowsocks#456
但是长链接被远端重置以后的问题大家可以尝试解决一下,这个问题感觉只是非常简单的边缘逻辑问题,可以当作第一次参加开源项目第一次提交Pull Request的历练。

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

1 participant