merlimat commented on issue #6463:
URL: https://github.com/apache/pulsar/issues/6463#issuecomment-910413733


   This problems stems by the fact that in C++ lib, you need to keep the 
`Client` instance alive. The `Producer` only keeps a `weak_ptr` to the `Client` 
to prevent a cyclic dependency. 
   
   In the boost::python wrapping, there's no easy way to keep a reference on 
the C++ `Client` instance. We'd need to create a custom wrapper class instead 
of automated wrapping done at 
https://github.com/apache/pulsar/blob/f784379323bdbd60db2825f3e6e63730d290a8f9/pulsar-client-cpp/python/src/producer.cc#L84


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to