From: Maksim Davydov <davydov-max@yandex-team.ru>
To: qemu-devel@nongnu.org
Cc: davydov-max@yandex-team.ru, yc-core@yandex-team.ru,
vsementsov@yandex-team.ru, eduardo@habkost.net,
marcel.apfelbaum@gmail.com, philmd@linaro.org,
wangyanan55@huawei.com, jsnow@redhat.com, crosa@redhat.com,
bleal@redhat.com, eblake@redhat.com, armbru@redhat.com,
pbonzini@redhat.com, berrange@redhat.com, alxndr@bu.edu,
bsd@redhat.com, stefanha@redhat.com, thuth@redhat.com,
darren.kenny@oracle.com, Qiuhao.Li@outlook.com,
lvivier@redhat.com
Subject: [PATCH v4 2/4] python/qmp: increase read buffer size
Date: Wed, 7 Dec 2022 21:28:23 +0300 [thread overview]
Message-ID: <20221207182825.84380-3-davydov-max@yandex-team.ru> (raw)
In-Reply-To: <20221207182825.84380-1-davydov-max@yandex-team.ru>
Current 256KB is not enough for some real cases. As a possible solution
limit can be chosen to be the same as libvirt (10MB)
Signed-off-by: Maksim Davydov <davydov-max@yandex-team.ru>
---
python/qemu/qmp/qmp_client.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/qemu/qmp/qmp_client.py b/python/qemu/qmp/qmp_client.py
index 5dcda04a75..b5772e7f32 100644
--- a/python/qemu/qmp/qmp_client.py
+++ b/python/qemu/qmp/qmp_client.py
@@ -197,8 +197,8 @@ async def run(self, address='/tmp/qemu.socket'):
#: Logger object used for debugging messages.
logger = logging.getLogger(__name__)
- # Read buffer limit; large enough to accept query-qmp-schema
- _limit = (256 * 1024)
+ # Read buffer limit; 10MB like libvirt default
+ _limit = (10 * 1024 * 1024)
# Type alias for pending execute() result items
_PendingT = Union[Message, ExecInterruptedError]
--
2.25.1
next prev parent reply other threads:[~2022-12-07 18:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-07 18:28 [PATCH v4 0/4] compare machine type compat_props Maksim Davydov
2022-12-07 18:28 ` [PATCH v4 1/4] qom: add default value Maksim Davydov
2022-12-07 18:28 ` Maksim Davydov [this message]
2023-01-06 22:04 ` [PATCH v4 2/4] python/qmp: increase read buffer size John Snow
2022-12-07 18:28 ` [PATCH v4 3/4] qmp: add dump machine type compatible properties Maksim Davydov
2022-12-07 18:28 ` [PATCH v4 4/4] scripts: add script to compare " Maksim Davydov
2022-12-12 10:53 ` Dr. David Alan Gilbert
2023-01-12 10:14 ` Maksim Davydov
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=20221207182825.84380-3-davydov-max@yandex-team.ru \
--to=davydov-max@yandex-team.ru \
--cc=Qiuhao.Li@outlook.com \
--cc=alxndr@bu.edu \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=bleal@redhat.com \
--cc=bsd@redhat.com \
--cc=crosa@redhat.com \
--cc=darren.kenny@oracle.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=jsnow@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
--cc=vsementsov@yandex-team.ru \
--cc=wangyanan55@huawei.com \
--cc=yc-core@yandex-team.ru \
/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).