Hi all, does anybody know how to do non-blocking virtConnectOpen? does libvirt support it or not cause I can't find any document about it? or should I need create a thread to do it? Thanks Fan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120905/c2daf146/attachment.htm>
On Wed, Sep 5, 2012 at 11:53 AM, lulin Fan <fan.luliin at gmail.com> wrote:> Hi all, > > does anybody know how to do non-blocking virtConnectOpen? does libvirt > support it or not cause I can't find any document about it? or should Ineed> create a thread to do it?It's worth to use non-blocking? What will you do without connect? If it's not related with libvirt connection, you can do in it in another thread if you like.> > > Thanks > > Fan > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users-- Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW Blog: http://www.nohouse.net -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120905/c9004612/attachment.htm>
On Wed, Sep 05, 2012 at 11:53:49AM +0800, lulin Fan wrote:> Hi all, > > does anybody know how to do non-blocking virtConnectOpen? does libvirt > support it or not cause I can't find any document about it? or should I > need create a thread to do it?The intent is that you should use threads for this. 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 :|
Hi I am writing a web-based management tool for KVM, it will manager a lot of remote KVM host, when user add a new connection from the UI, it will take a long time to open the libvirt connection sometimes due to the network problem, during this progress, the management tool will block the request of other user, it is not a good idea for users. BR Fan On 5 September 2012 14:55, Timon Wang <timonwst at gmail.com> wrote:> > > On Wed, Sep 5, 2012 at 11:53 AM, lulin Fan <fan.luliin at gmail.com> wrote: > > Hi all, > > > > does anybody know how to do non-blocking virtConnectOpen? does libvirt > > support it or not cause I can't find any document about it? or should I > need > > create a thread to do it? > > It's worth to use non-blocking? What will you do without connect? If it's > not related with libvirt connection, you can do in it in another thread if > you like. > > > > > > Thanks > > > > Fan > > > > _______________________________________________ > > libvirt-users mailing list > > libvirt-users at redhat.com > > https://www.redhat.com/mailman/listinfo/libvirt-users > > > > -- > Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW > Blog: http://www.nohouse.net >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120905/3570e89f/attachment.htm>