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

mqtt以及tcp当无网情况下使用域名连接时无法重连 #655

Open
Lijiugen opened this issue Dec 25, 2024 · 0 comments
Open

mqtt以及tcp当无网情况下使用域名连接时无法重连 #655

Lijiugen opened this issue Dec 25, 2024 · 0 comments

Comments

@Lijiugen
Copy link

mqtt和tcp网络重连时都会调用hio_create_socket创建Io,但是当网络异常或者网卡还未准备好时又或是网络本来是正常的突然没网情况时,hio_create_socket函数由于无法进行域名解析导致hio_create_socket直接返回为NULL,而重连定时器运行的前提是socket要正常创建,进而导致重连无法实现。现在要解决问题就很麻烦,希望libhv能解决这个问题就好了,这样就无脑使用就行。
2ed7bd19051ea39b37fd4d2a539a71a4
image

2f8d46573d8b591ec4c9588012d4ae11
image

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