Re: Finalizers are dangerous
Hi Frank:toggle quoted messageShow quoted text
Why don’t we start over here and see if we can make some progress?
If you’re OK with a solution based on a mama.properties setting, I can live with that.
For the transport it seems to me that a property setting like the following could work:
And for the payload library:
If that works for you, I’ll work up a PR and maybe we can put this bad boy to bed ;-)
Or feel free to suggest something different. (With the caveat that the dtor approach is not something I’m open to — nor does it solve the problem for our friends in Java and .Net land).
P.S. Note also that short-circuiting the dlclose plays much more nicely with tools like valgrind, which discards symbols when a shared library is closed.