paho.mqtt.python icon indicating copy to clipboard operation
paho.mqtt.python copied to clipboard

SRV connection do not work (with fix)

Open edwin-oetelaar opened this issue 5 years ago • 5 comments

https://github.com/eclipse/paho.mqtt.python/blob/1eec03edf39128e461e6729694cf5d7c1959e5e4/src/paho/mqtt/client.py#L974

Please replace line with parameters instead of wrong positional arguments. Testen on python 2.7.x and 3.5.x fixes both.

return self.connect(host, port, keepalive, bind_address, clean_start, properties)

            # Edwin van den Oetelaar fixes this 2020-05-22
            return self.connect(host=host, port=port, keepalive=keepalive, bind_address=bind_address, clean_start=clean_start, properties=properties)

edwin-oetelaar avatar May 22 '20 11:05 edwin-oetelaar

In case this bug isn't clear - this is serious (i.e. breaking) issue. The connect line in client.py is not passing the arguments through in the correct locations to connect(). As far as I can see, this means args like clean_start don't work at all.

TD22057 avatar Oct 05 '20 16:10 TD22057

I am not sure how to contribute here even more than I already did. My code running a real project broke, I needed the SRV functions. I found the problem, debugged it, fixed it and submitted a patch. Who is responsible for maintaining this code base?

Also https://github.com/eclipse/paho.mqtt.python/issues/442#issue-521739758

edwin-oetelaar avatar Oct 05 '20 17:10 edwin-oetelaar

Any update on this? This bug breaks the client and is trivial to fix.

TD22057 avatar Oct 31 '20 19:10 TD22057

Any updates? This really breaks the connect_srv and makes it unusable.

and3rson avatar Feb 01 '21 19:02 and3rson

https://github.com/eclipse/paho.mqtt.python/blob/9782ab81fe7ee3a05e74c7f3e1d03d5611ea4be4/src/paho/mqtt/client.py#L951

this looks still not fixed

@icraggs : please fix what you broke

edwin-oetelaar avatar Oct 31 '21 11:10 edwin-oetelaar