mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-22 07:43:06 +00:00
Merge pull request #8439 from ThomasWaldmann/fix-msgpack-max-buffer-size
msgpack: increase max_buffer_size to ~4GiB
This commit is contained in:
commit
e2198abd03
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ def get_limited_unpacker(kind):
|
|||
# unpack(data) or from max_buffer_size for Unpacker(max_buffer_size=N).
|
||||
args = dict(use_list=False, max_buffer_size=3 * max(BUFSIZE, MAX_OBJECT_SIZE)) # return tuples, not lists
|
||||
if kind in ("server", "client"):
|
||||
pass # nothing special
|
||||
args.update(dict(max_buffer_size=0)) # 0 means "maximum" here, ~4GiB - needed for store_load/save
|
||||
elif kind in ("manifest", "archive", "key"):
|
||||
args.update(dict(use_list=True, object_hook=StableDict)) # default value
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue