Skip to content

Connect onSuccess/onFailure can be called more than once #972

Closed
@svanharmelen

Description

@svanharmelen

I have a consistent crash in my program which started occurring when I switched from using QoS=1 to QoS=0. I'm using the async client by means of the paho.mqtt.rust crate (using the master branch). While I understand that the Rust crate is a project on it's own, I traced the problem back to the underlying paho.mqtt.c package.

I tried it with the version bundled by the Rust crate (1.3.2), as well as with the latest version (1.3.6) build locally by myself. Both give the exact same traces.

My Rust is pretty decent, but my C is not. So it's a challenge for me to further debug this myself, hence I'm hoping this could be checked by someone with some more C skills.

I have no clear way to reproduce the issue stand alone, but as you can see in the logs (trace log using the environment variable as described in the readme and a GDB backtrace) it actually happens right after the first publish:

Trace log
GBD log

Please let me know if there is anything I can/should test that might help understand the problem better. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions