qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to detect qga socket available?
@ 2017-08-10 12:04 Sam
  2017-08-28 17:08 ` Tomáš Golembiovský
  0 siblings, 1 reply; 2+ messages in thread
From: Sam @ 2017-08-10 12:04 UTC (permalink / raw)
  To: qemu-devel, qemu-discuss

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?

Thank you~

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] How to detect qga socket available?
  2017-08-10 12:04 [Qemu-devel] How to detect qga socket available? Sam
@ 2017-08-28 17:08 ` Tomáš Golembiovský
  0 siblings, 0 replies; 2+ messages in thread
From: Tomáš Golembiovský @ 2017-08-28 17:08 UTC (permalink / raw)
  To: Sam; +Cc: qemu-devel, qemu-discuss

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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-28 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-10 12:04 [Qemu-devel] How to detect qga socket available? Sam
2017-08-28 17:08 ` Tomáš Golembiovský

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).