[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [paho-dev] Python Paho with ssl disconnects and never reconnects
|
So, with a keepalive timeout of 60 seconds, the client should send out
an MQTT ping request after 60 seconds with no other inbound and outbound
traffic, and then if the connection is not working at that point, there
will be no ping response from the server, and the client library should
call connection lost.
I'm hoping the description of that scenario would help you/us identify
whether this is a server or client problem.
You could set the keepalive value to lower than 60 if you would like TCP
disconnections to be recognized quicker.
Ian
On 05/20/2015 02:07 PM, Dumitru Melenteanu wrote:
I tried a timeout value of 60 and 120 seconds. There were problems
with both.
On 05/20/2015 04:00 PM, Ian Craggs wrote:
Hi,
the keepalive timeout setting is intended to allow the MQTT client to
spot that TCP connections have disappeared. What value are you using?
On 05/12/2015 04:38 PM, Dumitru Melenteanu wrote:
Hi. I've been using paho to send messages from a stranded device
with a 3g connection. The connection is relatively stable, but not
that good, meaning that there are casual disconnects. Most of the
times there is no problem, but sometimes the application doesn't
reconnect, although it keeps sending messages, thinking that it is
still connected.
I'm using RabbitMQ with the mqtt-plugin as broker; I can see in the
logs ``ssl_upgrade_error,timeout``. There is no message in the
application logs about it losing connections and it doesn't seem to
care that there is no PUBACK message, even if I'm using QOS level 1.
It reconnects after a restart.
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto