-
I couldn't find anything explicitly documented as such, but I'm trying to confirm a pattern I found in code. For example, here, if the message sending fails for some reason, the handler itself will free the message. So in my channel handler vtable I ask because I had originally done the equivalent of:
to ensure I always handled the message freeing, but then ran into rare edge cases where my Am I understanding this all correctly? I could do a quick PR to the channel handler vtable docstring to clarify. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@quinnj Thanks for creating the issue. Yes, you are right. You must only free the message if you have successfully handled it. Sorry for the confusing documentation. I have created a PR #633 to update it. |
Beta Was this translation helpful? Give feedback.
@quinnj Thanks for creating the issue. Yes, you are right. You must only free the message if you have successfully handled it. Sorry for the confusing documentation. I have created a PR #633 to update it.