Matteo Merli
Matteo Merli
I believe we would have to inform Asio about the happening fork (https://www.boost.org/doc/libs/1_82_0/doc/html/boost_asio/reference/io_context/notify_fork.html), though I don't see an immediate easy way to hook it up automatically, in the C++ code.
I tried to expose the manual hook in C++ client and call it from Python wrapper. So far I was not successful in not making it crash when ### C++...
> Are you willing accept PR for issue number one or both? @AndrewJD79 Fixes for any of these are warmly welcomed.
@cbornet I don't have any experience with Conan.io but it seems to be a good way to package the client lib. > log4cxx (but it is optional, isn't it ?):...
Oh, I see : https://github.com/apache/pulsar/blob/579e0dc74039c081301662e5fd55209c1a4abe5c/pulsar-client-cpp/lib/checksum/crc32c_sw.cc#L47 It should be easy to just switch to same thing from boost https://www.boost.org/doc/libs/1_68_0/doc/html/thread/synchronization.html#thread.synchronization.once
We actually use that in another place: https://github.com/apache/pulsar/blob/8b2929b3e5403fb44653976dc74be287666f7b96/pulsar-client-cpp/lib/c/c_MessageId.cc#L37
@oversearch All the proposed changes look great!
@tuan6956 It should be `disableReplication(true)` rather than `false`
@eolivelli I think we should consider the NAR approach in a separate PR
@rdhabalia there is already a mechanism in place. ptal at #7406