The client should be notified by the operating system if the TCP
connection to the server has been lost.
TCP can have an issue that dropped connections can not be detected when
no data is being sent. This is one of the reasons for the MQTT clients
sends periodic pings - so that dropped connections can be detected.
Although that shouldn't be an issue if in the middle of a publish flow.
I am not familiar with the Paho Java client. It is perfectly possible
that some implementations don't perform resends on re-connect. My ruby
client doesn't currently support automatic reconnects at all.
nick.
>>> Visit this group at
https://groups.google.com/group/mqtt [1].
>>> For more options, visit
https://groups.google.com/d/optout [2].
> Links:
> ------
> [1]
https://groups.google.com/group/mqtt
> [2]
https://groups.google.com/d/optout