-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hi, I configured the Paho client as persistent, but I'm periodically having reconnect attempts due to "no activity", why this happens?
My Rails app is using the client to send a "ping" to my MQTT broken every 5sec.
I'm attaching a log:
D, [2018-05-14T09:18:18.408485 #1] DEBUG -- : No activity period over timeout, disconnecting from mqtt.example.com.
D, [2018-05-14T09:18:18.408533 #1] DEBUG -- : Disconnecting from mqtt.example.com.
D, [2018-05-14T09:18:18.409094 #1] DEBUG -- : New reconnect attempt...
W, [2018-05-14T09:18:18.409137 #1] WARN -- : Attempt to connect to host: mqtt.example.com
W, [2018-05-14T09:18:18.411795 #1] WARN -- : Attempt to connect to host: mqtt.example.com
D, [2018-05-14T09:18:18.414599 #1] DEBUG -- : Connection accepted
D, [2018-05-14T09:18:18.414625 #1] DEBUG -- : No previous session found by server, starting a new one.
D, [2018-05-14T09:18:31.647347 #40] DEBUG -- : Checking if server is still alive...
I, [2018-05-14T09:18:31.652623 #40] INFO -- : New packet PahoMqtt::Packet::Pingresp received.
D, [2018-05-14T09:19:13.647935 #40] DEBUG -- : Checking if server is still alive...
I, [2018-05-14T09:19:13.653228 #40] INFO -- : New packet PahoMqtt::Packet::Pingresp received.
D, [2018-05-14T09:19:24.418275 #1] DEBUG -- : No activity period over timeout, disconnecting from mqtt.example.com.
D, [2018-05-14T09:19:24.418328 #1] DEBUG -- : Disconnecting from mqtt.example.com.
D, [2018-05-14T09:19:24.418711 #1] DEBUG -- : New reconnect attempt...
W, [2018-05-14T09:19:24.418760 #1] WARN -- : Attempt to connect to host: mqtt.example.com
W, [2018-05-14T09:19:24.421943 #1] WARN -- : Attempt to connect to host: mqtt.example.com
D, [2018-05-14T09:19:24.424065 #1] DEBUG -- : Connection accepted
D, [2018-05-14T09:19:24.424092 #1] DEBUG -- : No previous session found by server, starting a new one.
D, [2018-05-14T09:19:55.649051 #40] DEBUG -- : Checking if server is still alive...
I, [2018-05-14T09:19:55.654335 #40] INFO -- : New packet PahoMqtt::Packet::Pingresp received.
D, [2018-05-14T09:20:30.425640 #1] DEBUG -- : No activity period over timeout, disconnecting from mqtt.example.com.
D, [2018-05-14T09:20:30.425693 #1] DEBUG -- : Disconnecting from mqtt.example.com.
D, [2018-05-14T09:20:30.426063 #1] DEBUG -- : New reconnect attempt...
W, [2018-05-14T09:20:30.426125 #1] WARN -- : Attempt to connect to host: mqtt.example.com
W, [2018-05-14T09:20:30.427931 #1] WARN -- : Attempt to connect to host: mqtt.example.com
D, [2018-05-14T09:20:30.430158 #1] DEBUG -- : Connection accepted
D, [2018-05-14T09:20:30.430184 #1] DEBUG -- : No previous session found by server, starting a new one.
D, [2018-05-14T09:20:37.652151 #40] DEBUG -- : Checking if server is still alive...
I, [2018-05-14T09:20:37.657470 #40] INFO -- : New packet PahoMqtt::Packet::Pingresp received.
D, [2018-05-14T09:21:19.655463 #40] DEBUG -- : Checking if server is still alive...
I, [2018-05-14T09:21:19.660764 #40] INFO -- : New packet PahoMqtt::Packet::Pingresp received.
D, [2018-05-14T09:21:36.434613 #1] DEBUG -- : No activity period over timeout, disconnecting from mqtt.example.com.
D, [2018-05-14T09:21:36.434675 #1] DEBUG -- : Disconnecting from mqtt.example.com.
D, [2018-05-14T09:21:36.434833 #1] DEBUG -- : New reconnect attempt...
W, [2018-05-14T09:21:36.434896 #1] WARN -- : Attempt to connect to host: mqtt.example.com
W, [2018-05-14T09:21:36.437511 #1] WARN -- : Attempt to connect to host: mqtt.example.com
D, [2018-05-14T09:21:36.439761 #1] DEBUG -- : Connection accepted
D, [2018-05-14T09:21:36.439802 #1] DEBUG -- : No previous session found by server, starting a new one.
D, [2018-05-14T09:22:01.655819 #40] DEBUG -- : Checking if server is still alive...
I, [2018-05-14T09:22:01.661134 #40] INFO -- : New packet PahoMqtt::Packet::Pingresp received.
Leen15 and p-goudet
Metadata
Metadata
Assignees
Labels
No labels