On Fri, Dec 15, 2023 at 10:58:29AM +0000, Daniel P. Berrangé wrote:
If you use the virConnectRegisterCloseCallback() method, you should
get
notified of the connection drop at precisely the right time, every time,
regardless of whether you happen to be making an API call at the time.
That only gets called once, not for every thread sharing the connection,
so there is no way to clean up all the other threads.
regards
john