Merge "Add note explaining max_buffer_size value"
This commit is contained in:
commit
73610db919
@ -69,10 +69,15 @@ class Serializer(object):
|
|||||||
class Deserializer(object):
|
class Deserializer(object):
|
||||||
def __init__(self, readsock):
|
def __init__(self, readsock):
|
||||||
self.readsock = readsock
|
self.readsock = readsock
|
||||||
self.unpacker = msgpack.Unpacker(use_list=False, raw=False,
|
self.unpacker = msgpack.Unpacker(
|
||||||
|
use_list=False,
|
||||||
|
raw=False,
|
||||||
strict_map_key=False,
|
strict_map_key=False,
|
||||||
unicode_errors='surrogateescape',
|
unicode_errors='surrogateescape',
|
||||||
max_buffer_size=100 * 1024 * 1024)
|
# 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):
|
def __iter__(self):
|
||||||
return self
|
return self
|
||||||
|
Loading…
Reference in New Issue
Block a user