Re: Is it possible to set a timeout to the Connection class?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 18.02.2014 15:02, schrieb Pasquale Dir:
I am using the java api bindings.

I'd like to set a connection timeout on the Connect class as sometimes
it takes just too long.

This depends on the driver you're using.

If the connection is established over the network, you'd have to change the TCP connection timeout for your OS. (Other than that, libvirt does not provide a method to change this per connection AFAIK)

Is there any way/workaround?

Create your Connect object in another thread using a Future. Then, await the result of that future using a custom timeout.

Claudio

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]