[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3965: Use better max encodings for CBOR messages
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Jan 10 16:05:40 UTC 2023
#3965: Use better max encodings for CBOR messages
-------------------------+---------------------------------------
Reporter: itamarst | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: HTTP Storage Protocol
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
-------------------------+---------------------------------------
CBOR decoding can now choose what a reasonable max size is on a case by
case basis, so we should take advantage of that.
For example, the allocate_buckets message should probably never be more
than 1kB (limited number of shares, and you'd need an absolutely absurdly
huge file for the encoded size to get even close to 1kB). whereas
advise_corrupt_share_immutable accepts some semi-arbitrary text so being a
bit more generous and accepting something like 64kB makes sense.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3965>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list