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

客户端ip或port发生变化时连接丢失,这种情况如何处理? #17

Open
chosen0ne opened this issue Nov 16, 2019 · 3 comments
Open

Comments

@chosen0ne
Copy link

框架内部通过remote address管理channel, 当客户端ip或port发生变化后, 服务端是无法感知的, 只能通过客户端探活重连, 这种情况会导致客户端在这种情况下延迟大大增加. 当客户端4G切换基站或者更换wifi ap时就会发生这种情, 而且比较频繁. 除了修改框架以conv管理channel外, 还有其他方案么?

@medusar
Copy link

medusar commented Nov 26, 2019

1)减小心跳时间间隔
2)减少等待超时时间

顺便问下楼主现在是怎么解决的呢?

@chosen0ne
Copy link
Author

1)减小心跳时间间隔
2)减少等待超时时间

顺便问下楼主现在是怎么解决的呢?

改了源码,以conv管理channel

@szhnet
Copy link
Owner

szhnet commented Dec 31, 2019

考虑之后可以做个开关控制是用remote address,还是用conv进行channel管理。

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

3 participants