Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86708c9

Browse files
authored
increase unpack buffer to 1G
1 parent 99ee6e4 commit 86708c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zerorpc/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def pack(self):
210210

211211
@staticmethod
212212
def unpack(blob):
213-
unpacker = msgpack.Unpacker(raw=False)
213+
unpacker = msgpack.Unpacker(raw=False, max_buffer_size=1105507304) # 1024**3
214214
unpacker.feed(blob)
215215
unpacked_msg = unpacker.unpack()
216216

0 commit comments

Comments
 (0)