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