With the version 1.4.14 i found that when :
plugged ethernet cable ( between embedded device and pc ) no need for internet or any connectivity just plugged in the ethernet cable.
run mosquitto localy and in loopback :
mosquitto with the default config : mosquitto -c /etc/mosquitto/mosquitto.conf -v -d
mosquitto_sub -h localhost -t topic/message
&mosquitto_pub -h localhost -m "hello" -t topic/message -d
Unplugged the ethernet
Result : messages are buffered only when the ethernet is plugged.
if i unplugged the ethernet messages are not buffered As soon as I plugged in the ethernet again, the messages are sent all at once.
When i check the mosquitto log I found that the client use the IP of ethernet interface.
I tested with 1.5.8 version the problem is not seen, because they use the right interface( loopback interface).
which commit that fix this issue ? (I need to fix this issue in this version )