From: Luiz Capitulino <lcapitulino@redhat.com>
To: Jeff Cody <jcody@redhat.com>
Cc: kwolf@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] qmp: fix __accept() in qmp.py
Date: Tue, 16 Oct 2012 22:54:15 -0300 [thread overview]
Message-ID: <20121016225415.5541ef77@doriath.home> (raw)
In-Reply-To: <1350334682-27158-1-git-send-email-jcody@redhat.com>
On Mon, 15 Oct 2012 16:58:02 -0400
Jeff Cody <jcody@redhat.com> wrote:
> In QEMUMonitorProtocol, commit e9d17b6 removed the __sockfile creation
> from __negotiate_capabilities(), which breaks _accept(). This causes
> failures in qemu-io python based tests (i.e. tests 030 and 040).
>
> This patch creates the sockfile in __accept() as well.
>
> Signed-off-by: Jeff Cody <jcody@redhat.com>
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
> ---
> QMP/qmp.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/QMP/qmp.py b/QMP/qmp.py
> index 33c7d36..32510a1 100644
> --- a/QMP/qmp.py
> +++ b/QMP/qmp.py
> @@ -96,6 +96,7 @@ class QEMUMonitorProtocol:
> @raise QMPCapabilitiesError if fails to negotiate capabilities
> """
> self.__sock, _ = self.__sock.accept()
> + self.__sockfile = self.__sock.makefile()
> return self.__negotiate_capabilities()
>
> def cmd_obj(self, qmp_cmd):
prev parent reply other threads:[~2012-10-17 1:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-15 20:58 [Qemu-devel] [PATCH v2] qmp: fix __accept() in qmp.py Jeff Cody
2012-10-16 8:06 ` Kevin Wolf
2012-10-16 8:23 ` Stefan Hajnoczi
2012-10-17 1:54 ` Luiz Capitulino [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=20121016225415.5541ef77@doriath.home \
--to=lcapitulino@redhat.com \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.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).