eclipse / paho.mqtt.rust

paho.mqtt.rust
Other
516 stars 102 forks source link

Async Client invalid access #159

Closed Visic closed 10 months ago

Visic commented 2 years ago

Using the ConnectOptionsBuilder.automatic_reconnect with an async client results in an invalid access error on line 304 of token.rs

My current test is set up to fail to connect to a broker and I do see the initial connection failure reported correctly, additionally, taking out the automatic_reconnect seems to work as well.

paho-mqtt = { version = "0.11.1", default-features = false, features = ["bundled", "build_bindgen"] }

On windows 10 (nightly-x86_64-pc-windows-msvc rustc 1.63.0-nightly) , no cross compilation.

fpagliughi commented 2 years ago

Thanks! I'll have a look.

fpagliughi commented 1 year ago

This is manifesting in a few ways and was finally tracked down to an issue in the C library. I'll get it fix and updated here as soon as something lands upstream.

fpagliughi commented 10 months ago

It looks like this is fixed with the upcoming v0.12.3 release. At least I can't recreate it in testing. If you still see it with that version, please feel free to reopen.