Skip to content

Commit

Permalink
Merge pull request #8439 from ThomasWaldmann/fix-msgpack-max-buffer-size
Browse files Browse the repository at this point in the history
msgpack: increase max_buffer_size to ~4GiB
  • Loading branch information
ThomasWaldmann authored Oct 1, 2024
2 parents 86c889c + e251162 commit e2198ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/helpers/msgpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e2198ab

Please sign in to comment.