From: "Tomáš Golembiovský" <tgolembi@redhat.com>
To: Sam <batmanustc@gmail.com>
Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org
Subject: Re: [Qemu-devel] How to detect qga socket available?
Date: Mon, 28 Aug 2017 19:08:40 +0200 [thread overview]
Message-ID: <20170828190840.67a394f5@fiorina> (raw)
In-Reply-To: <CAOE=1Z0s6Z8c_Nd4_ZO+6E3PfK7mODRFVL5LbFr3cPvXcHmLDg@mail.gmail.com>
On Thu, 10 Aug 2017 20:04:32 +0800
Sam <batmanustc@gmail.com> 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ý <tgolembi@redhat.com>
prev parent reply other threads:[~2017-08-28 17:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 12:04 [Qemu-devel] How to detect qga socket available? Sam
2017-08-28 17:08 ` Tomáš Golembiovský [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170828190840.67a394f5@fiorina \
--to=tgolembi@redhat.com \
--cc=batmanustc@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-discuss@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.