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

Client连接异常情况,发包失败 #39

Open
zjs604381586 opened this issue Dec 31, 2020 · 1 comment
Open

Client连接异常情况,发包失败 #39

zjs604381586 opened this issue Dec 31, 2020 · 1 comment

Comments

@zjs604381586
Copy link

在Client发包里,可否加一个连接正常状态的检查?看了一遍源码,比如一种case在连接刚被各种异常网络情况断开后,发送了message,此时message将会发送失败,wirteLoop会退出。可否在asyncWrite中加上连接是否正常的状态检查,连接不正常,则重新进行Dial连接,但是这样会阻塞asyncWrite的调用。

@leesper
Copy link
Owner

leesper commented Mar 20, 2021

@zjs604381586 好的,我再研究一下,谢谢您!

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