buck2
buck2 copied to clipboard
Separate max file size and decoding size handling in oss re client
Before it was possible to set a total file size for all the RE's IO API that exceed tonic's default max-decoding size of 4MB. Matter of fact, because the default limit is 4MB for both this happened by default with files of comulative size close to or equal to the limit. Example:
genrule(
name = "large_download",
out = "out.txt",
cmd = "dd if=/dev/zero of=$OUT bs=4M count=1",
)
PS: Please be nice, this is my first time contribution both here and in rust :)