[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] [Qemu-devel] How to detect qga socket available?
From: |
Tomáš Golembiovský |
Subject: |
Re: [Qemu-discuss] [Qemu-devel] How to detect qga socket available? |
Date: |
Mon, 28 Aug 2017 19:08:40 +0200 |
On Thu, 10 Aug 2017 20:04:32 +0800
Sam <address@hidden> wrote:
> Hi all,
>
> I want to send command through qga socket, but sometimes it will hanged
> there. So I want to test qga socket available first, then send qga command.
>
> So my question is how to test qga socket available, which is not taken by
> others? By timeout?
>
I am not aware of any fast and reliable way. I'd suggest sending the
"guest-sync" command and wait for response with a timeout.
Tomas
--
Tomáš Golembiovský <address@hidden>