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

您好 socket能否添加对重连机制的支持 #66

Closed
coding-lxm opened this issue Aug 23, 2021 · 2 comments
Closed

您好 socket能否添加对重连机制的支持 #66

coding-lxm opened this issue Aug 23, 2021 · 2 comments

Comments

@coding-lxm
Copy link

博主,项目中用到的tcp socket经常需要用到重连机制,能否在socket中添加个可配置的重连机制

@xia-chu
Copy link
Member

xia-chu commented Aug 23, 2021

为了支持上层五花八门的业务和功能,底层api肯定是细粒度的,你说的重连场景只是一种业务而已,而且什么错误时重连?重连间隙是多少?重连多少次?这些都是很业务的事情,应该在上层代码去实现的。而且我都把onErr(断开)事件抛出来了,自己实现下重连多难呢? zlmediakit有很多重连这样的场景啊,并不一定要在zltoolkit实现啊

@coding-lxm
Copy link
Author

好的 感谢回复

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

2 participants