Local mosquitto broker stops publishing messages if ethernet cable is unplugged

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Local mosquitto broker stops publishing messages if ethernet cable is unplugged

318 Views
hasaafi
Contributor I

MQTT messages are not published anymore as soon as I unplug the ethernet cable.
The broker seems to buffer all messages, but it does not send them if there is no network reachable (no ethernet or wifi connection).

As soon as I plug the cable back in again, the buffered messages are then sent all at once.

i use kernel 3.10.17 .

the problem is not reproduced with kernel 4.19.

step to reproduce :

1/ plugged ethernet 

2/ run mosquitto -c /etc/mosquitto/mosquitto.conf -v -d

3/ subscribe to a topic: mosquitto_sub -h localhost -t topic/message &

4/ Publish => OK (I get the message): mosquitto_pub -h localhost -m "hello" -t topic/message -d

5/unplugged ethernet

6/Publish => NOK (I don't get the message)

 

 
0 Kudos
2 Replies

269 Views
hasaafi
Contributor I

I don't think the problem is related to bsp since the problem seen with mosquitto 1.4.14 and not seen with 1.5.8

 

0 Kudos

302 Views
Chavira
NXP TechSupport
NXP TechSupport

Thank you for contacting NXP support!

Please try the latest bsp 5.15.71, since your kernel version is not supported, you may try the latest one.

0 Kudos