[libvirt-users] Unable to close open libvirt connections
Daniel P. Berrange
berrange at redhat.com
Thu Jan 12 11:35:55 UTC 2012
On Thu, Jan 12, 2012 at 04:58:03PM +0530, Jatin Kumar wrote:
> Thanks, setting dom=None solved the problem. But that needs to make alot of
> changes in the code. Do we have any other alternative ?
Well python should garbage collect them when the variables go
out of scope. When all 'dom' are garbage collected, then the
connection will be garbage collected too & the close() will
thus take effect
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvirt-users
mailing list