eclipse-mosquitto / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
9.15k stars 2.41k forks source link

Mosquitto client use Ethernet interface instead of loopback interface #2774

Open hasaafi opened 1 year ago

hasaafi commented 1 year ago

With the version 1.4.14 i found that when :

-3/ unplugged 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 ?

hasaafi commented 1 year ago

any help ?

hasaafi commented 1 year ago

again

ralight commented 1 year ago

I don't know. If this is important to you, you could run git bisect to find the commit.

hasaafi commented 1 year ago

the problem here that i use an old bsp : linux 3.10 so i can't test commits between this 2 version , mosquitto need dependencies so with the newest version i can't run it on my bsp. I think that fixed in lib/net_mosq.c when they try to fixing another problem , but i can't find the commit

gdt commented 1 month ago

@hasaafi f this can't be reproduced on the latest release the issue should be closed. If so it needs much more details and to argue that there is a bug in mosquitto as opposed to a problem in your setup.