Merge "Add note explaining max_buffer_size value"

This commit is contained in:
Zuul 2022-04-11 21:59:32 +00:00 committed by Gerrit Code Review
commit 73610db919

View File

@ -69,10 +69,15 @@ class Serializer(object):
class Deserializer(object):
def __init__(self, readsock):
self.readsock = readsock
self.unpacker = msgpack.Unpacker(use_list=False, raw=False,
strict_map_key=False,
unicode_errors='surrogateescape',
max_buffer_size=100 * 1024 * 1024)
self.unpacker = msgpack.Unpacker(
use_list=False,
raw=False,
strict_map_key=False,
unicode_errors='surrogateescape',
# msgpack 1.0.0 set this value to 100MiB; raise it here for msgpack
# < 1.0.0
max_buffer_size=100 * 1024 * 1024,
)
def __iter__(self):
return self