[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 2/4] python/qmp: increase read buffer size
From: |
John Snow |
Subject: |
Re: [PATCH v3 2/4] python/qmp: increase read buffer size |
Date: |
Tue, 8 Nov 2022 15:38:21 -0500 |
On Thu, Nov 3, 2022 at 6:29 AM Maksim Davydov
<[email protected]> wrote:
>
> After modification of "query-machines" command the buffer size should be
> more than 452kB to contain output with compat-props.
>
> Signed-off-by: Maksim Davydov <[email protected]>
> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
> ---
> 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..659fe4d98c 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; large enough to accept query-machines
> + _limit = (512 * 1024)
wow :)
>
> # Type alias for pending execute() result items
> _PendingT = Union[Message, ExecInterruptedError]
> --
> 2.25.1
>
If you would please submit this to
https://gitlab.com/qemu-project/python-qemu-qmp I can get it merged
there quickly, then backport it to qemu.git.
Or, if you don't have a gitlab account (and do not want one), please
let me know and I'll port it there myself so you don't have to.
thanks,
--js
[PATCH v3 1/4] qom: add default value, Maksim Davydov, 2022/11/03
[PATCH v3 3/4] qmp: add dump machine type compatible properties, Maksim Davydov, 2022/11/03