Teemu Torma
2007-03-14 17:07:25 UTC
I've had couple of instances over the years when a servant destructor
leaks an exception when poa calls _remove_ref, causing the shutdown to
hang. Destructors should not throw, but bugs infestations happen
sometimes during development.
These cases a bit hard to find and debug, and since letting the
exception propagate does never any good, why not just log and ignore
them?
The attached patch does this in one case, there are potentially others
too, and the logging could be more noisy to not go unnoticed.
Teemu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniorb-remove-ref.patch
Type: text/x-diff
Size: 607 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070314/cb2e5ebe/omniorb-remove-ref.bin
leaks an exception when poa calls _remove_ref, causing the shutdown to
hang. Destructors should not throw, but bugs infestations happen
sometimes during development.
These cases a bit hard to find and debug, and since letting the
exception propagate does never any good, why not just log and ignore
them?
The attached patch does this in one case, there are potentially others
too, and the logging could be more noisy to not go unnoticed.
Teemu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniorb-remove-ref.patch
Type: text/x-diff
Size: 607 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070314/cb2e5ebe/omniorb-remove-ref.bin