All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [QGA] Bug of qga?
@ 2017-08-25  2:11 Sam
  2017-08-25  3:09 ` Sam
  0 siblings, 1 reply; 8+ messages in thread
From: Sam @ 2017-08-25  2:11 UTC (permalink / raw)
  To: qemu-devel

Hi all,

I'm using qga to send `route -n` and `ping` command to guest. But I found
SOMETIMES, the second `ping` command's result is the same as `route -n`
command.

So I guess is there some cache mechanism of qga command result? So when I
send the second command, and receive from qga socket, I receive the result
of first command.

Or is this bug happened because of I use async mechanism of python code to
operate qga socket?

This is the python code I use to operate on this qga socket:

try:
>         sock=socket(AF_UNIX, SOCK_STREAM)
>         sock.settimeout(20)
>         sock.connect(vm_qga_sockpath)
>         sock.send(cmd)
>         while True:
>             res = sock.recv(1024)
>             if len(res):
>                 break
>     except Exception as e:
>         res = -1
>     finally:
>         sock.settimeout(None)
>         sock.close()

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

end of thread, other threads:[~2017-09-12 14:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25  2:11 [Qemu-devel] [QGA] Bug of qga? Sam
2017-08-25  3:09 ` Sam
2017-08-29  5:52   ` Sam
2017-08-29  6:19     ` Sam
2017-08-29  9:04       ` Sameeh Jubran
2017-08-30  6:20         ` Sam
2017-08-30  6:22           ` Sam
2017-09-12 14:59             ` Sameeh Jubran

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.