qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Qpid proton: pn_message and pn_message_free() - when are you expected to free the message?
Date Mon, 21 Sep 2015 23:15:59 GMT
Hi all,

In the example code for the async sending of messages below, the example is somewhat contrived
in that it cleans up the pn_message structure after the whole messenger event loop has been
shut down.

Obviously in a real application you want to send many messages, and you need to free those
messages after sending them to stop leaking. When is the right time to free the messages?
After the pn_messenger_put()? After pn_messenger_send()? Some other time?



To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org

View raw message