-
Notifications
You must be signed in to change notification settings - Fork 162
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
com.hivemq.client.mqtt.exceptions.ConnectionClosedException: Timeout while waiting for PINGRESP #508
Comments
Hi @acaliaro - it's been a while since this issue has been posted. Is this still an issue for you? I would think this is actually the correct behavior indicating that the socket connection from wifi A is no longer active/valid. If you'd like me to take a look, could you share a snippet of code to reproduce how you are using the client? |
HI |
Hi @acaliaro - understood. Thanks for the update. Let us know if so. I'd be happy to investigate. |
i use ssh connect to device ,monitor same issue ,during this period ,the ssh connection work fine ,at same time ,another device connect to same broker also work fine
|
Hi all, I've added a feature request #623 to improve the PINGREQ <--> PINGRESP behaviour during network changes. Thanks for pointing this out! |
Expected behavior
On a Datalogic Joya Touch I change the wifi network.
When I switch from network A to B, MqttClient reconnect.
The device is online (if I open the browser I see web pages) but I have the exception
Actual behavior
com.hivemq.client.mqtt.exceptions.ConnectionClosedException: Timeout while waiting for PINGRESP
To Reproduce
Switch from wifi A to B, the mqtt reconnect but publish message goes to timeout
Steps
Reproducer code
Details
implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.2'
implementation 'org.threeten:threetenbp:1.4.4'
The text was updated successfully, but these errors were encountered: