-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
ISP 切换 IP 导致服务中断 #485
Comments
设定为5分钟未收到任何数据会主动断开连接,直接缩短这个时间会导致一定丢包时候断线很频繁,为什么这么长参考的是tcp超时重传机制,当然也可以自己调系统参数让系统尽快断开连接 |
理解您设置5分钟这一时间间隔的用意,但能否考虑在下一版本中允许用户自定义这一时间间隔,以方便在不同网络环境中、对链路稳定性有不同需求的用户?(比如,默认为5分钟,并可按秒或分钟为单位自定义数值)谢谢! |
2边都需要心跳机制来实现断线重连 |
kiririx
pushed a commit
to kiririx/nps
that referenced
this issue
Jul 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
经过一段时间的观察,当客户端的IP地址由于ISP重新分配而变动时,会发生数分钟的服务中断。
猜测原因:服务端无法通过原先的IP地址连接到客户端。客户端也由于不知道“服务端现在无法连接到客户端”这一事件,而没有及时与服务端重新握手,导致服务中断。
尽管这个问题能在一段时间后自动修复,但难免影响业务。可否优化一下断线重连机制,比如
The text was updated successfully, but these errors were encountered: