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

com.hivemq.client.mqtt.exceptions.ConnectionClosedException: Timeout while waiting for PINGRESP #508

Open
acaliaro opened this issue Oct 13, 2021 · 5 comments
Labels

Comments

@acaliaro
Copy link

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

  • Affected HiveMQ MQTT Client version(s):
  • implementation 'com.hivemq:hivemq-mqtt-client:1.2.1'
    
    implementation 'net.sourceforge.streamsupport:android-retrostreams:1.7.2'
    implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.2'
    implementation 'org.threeten:threetenbp:1.4.4'
  • Used JVM version:
  • Used OS (name and version): Android 7.1.2
  • Used MQTT version:
  • Used MQTT broker (name and version):
@pglombardo
Copy link
Contributor

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?

@acaliaro
Copy link
Author

HI
It's been a long time and I honestly can't remember whether or not this problem has been fixed. We are not currently using this type of device, but we will probably have to go back to testing soon. I will update you thanks

@pglombardo
Copy link
Contributor

Hi @acaliaro - understood. Thanks for the update. Let us know if so. I'd be happy to investigate.

@shanjunmei
Copy link

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

com.hivemq.client.mqtt.exceptions.ConnectionClosedException: Timeout while waiting for PINGRESP Server mqtt disconnected /{ip}:{port} com.hivemq.client.mqtt.exceptions.ConnectionFailedException: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: null: /{ip}:{port}

@pglombardo
Copy link
Contributor

Hi all, I've added a feature request #623 to improve the PINGREQ <--> PINGRESP behaviour during network changes.

Thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants