shuyanzhu commented on issue #337:
URL: 
https://github.com/apache/rocketmq-client-cpp/issues/337#issuecomment-735322063


   User should catch this exception and may call the 
Pullback::onException(MQException &), and then delete call back if it was 
allocated in heap when Pullback::onException(MQException &) don't "delete 
this", just like the code in send message( another issue in send user should 
konw is the AutoDeleteSendback don't work normally in this case because it is 
called by SendCallbackWrap::onException ). It's my opinion.
   
   > 
https://github.com/apache/rocketmq-client-cpp/blob/a42de735a3319a859f6108c9e714ed715fe45969/src/producer/DefaultMQProducerImpl.cpp#L231


----------------------------------------------------------------
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:
[email protected]


Reply via email to