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

另一个客户端使用相同账号登录后,当前客户端reconnect没有回应 #1

Open
xiejun opened this issue Aug 10, 2017 · 5 comments

Comments

@xiejun
Copy link

xiejun commented Aug 10, 2017

另一个客户端使用相同账号登录mqtt服务器后,当前正在连接的客户端断开后再reconnect没有回应,网络断开是可以重连的,但是账号登出这种情况好像有时候重连就会没回应

@xljiulang
Copy link
Owner

与服务器有关系,请确保每个终端使用不同的clientId

@xiejun
Copy link
Author

xiejun commented Aug 10, 2017

可以添加reconnect如果超时没回应再重新连接的处理吗

@xljiulang
Copy link
Owner

这样也会造成相互挤着下线

@xiejun
Copy link
Author

xiejun commented Aug 15, 2017

有的时候不一定是同一个clientId登录导致reconnect没回应,也有可能是其他原因,同一个clientid登录只是reconnect没回应的一种

@xiejun
Copy link
Author

xiejun commented Aug 16, 2017

和设置connectOpt的那些属性有关系吗,有时候reconnect好几次都连不上,只有重启软件重新设置mqtt连接才行

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