mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
python/qmp: increase read buffer size
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> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20230112152805.33109-3-davydov-max@yandex-team.ru Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
f9922937d1
commit
166464c6ce
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue