You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
sending Subscribe or unsubscribe msg with nng_sendmsg/nng_send API will cause memory leak of one SUBACK/UNSUBACK message. So just don't do this, use nng_mqtt_subscribe_async/nng_mqtt_subscribe which will deal with ack msg in its own callback. or you can use nng_send_aio and create your own callback func for suback/unsuback.
Expected behavior
no memleak when sending SUB/UNSUB message with classical nng API, however this is impossible if we wanna implement a sub callback mechanism on basis of nng aio.
The text was updated successfully, but these errors were encountered:
Describe the bug
sending Subscribe or unsubscribe msg with nng_sendmsg/nng_send API will cause memory leak of one SUBACK/UNSUBACK message. So just don't do this, use nng_mqtt_subscribe_async/nng_mqtt_subscribe which will deal with ack msg in its own callback. or you can use nng_send_aio and create your own callback func for suback/unsuback.
Expected behavior
no memleak when sending SUB/UNSUB message with classical nng API, however this is impossible if we wanna implement a sub callback mechanism on basis of nng aio.
The text was updated successfully, but these errors were encountered: