qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sam <batmanustc@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [QGA] Bug of qga?
Date: Fri, 25 Aug 2017 10:11:59 +0800	[thread overview]
Message-ID: <CAOE=1Z2CjwTUPgREzBzkSLht9FP=g0_NsrOhVokQUgS2Sg-XOQ@mail.gmail.com> (raw)

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()

             reply	other threads:[~2017-08-25  2:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-25  2:11 Sam [this message]
2017-08-25  3:09 ` [Qemu-devel] [QGA] Bug of qga? 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

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='CAOE=1Z2CjwTUPgREzBzkSLht9FP=g0_NsrOhVokQUgS2Sg-XOQ@mail.gmail.com' \
    --to=batmanustc@gmail.com \
    --cc=qemu-devel@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 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).