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

2014-02-19 Thread Claudio Bley
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

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

2014-02-19 Thread Daniel P. Berrange
On Tue, Feb 18, 2014 at 04:13:19PM -0700, Eric Blake wrote: On 02/18/2014 07:02 AM, Pasquale Dir wrote: 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. Which particular API takes too long? There are some

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

2014-02-19 Thread Claudio Bley
[please, don't top-post on technical lists and keep the conversation on list] At Wed, 19 Feb 2014 11:59:29 +0100, Pasquale Dir wrote: Thank you I didn't think about the Future, I'll try it and if it doesn't work I'll just try to edit the tcp connection timeout file. Can you answer me to the

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

2014-02-19 Thread Eric Blake
On 02/19/2014 04:06 AM, Daniel P. Berrange wrote: FWIW, for the initial 'virConnectOpen' API I think it probably would be worthwhile us supporting a standardized timeout URI parameter. That way if the remote service doesn't respond at all for some reason users can have fine control. That's a

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

2014-02-19 Thread Daniel P. Berrange
On Wed, Feb 19, 2014 at 07:54:54AM -0700, Eric Blake wrote: On 02/19/2014 04:06 AM, Daniel P. Berrange wrote: FWIW, for the initial 'virConnectOpen' API I think it probably would be worthwhile us supporting a standardized timeout URI parameter. That way if the remote service doesn't

[libvirt] Is it possible to set a timeout to the Connection class?

2014-02-18 Thread 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. Is there any way/workaround? -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

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

2014-02-18 Thread Eric Blake
On 02/18/2014 07:02 AM, Pasquale Dir wrote: 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. Which particular API takes too long? There are some APIs like migration that take a long time, but where you can use