You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/11/29 03:23:37 UTC

[GitHub] [rocketmq-client-cpp] shuyanzhu edited a comment on issue #337: bug, should rethrow error

shuyanzhu edited a comment on issue #337:
URL: https://github.com/apache/rocketmq-client-cpp/issues/337#issuecomment-735337288


   I mean all Pullbacks which were allocated in heap need to "delete this" in onSuccess or onException because there is no AutoDeletePullback to be inherited by user. Sendback does has AutoDeleteSendback, but if there is exception occurs in send AutoDeleteSendback don't work, so user should catch exceptions and delete Sendback mannually. I am confused why Pullback doesn't has AutoDelete like Sendback like 
   
   > https://github.com/apache/rocketmq-client-cpp/blob/87350727950d1ece9ed3ffab414bbe0f673eeaac/include/AsyncCallback.h#L39
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org