Skip to content

Commit dd5a700

Browse files
authored
chore: Increase max HTTP response size (#2083)
We're tripping this with larger packages, increase the limit so that we ideally don't have to think about this again Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
1 parent 8e44fcd commit dd5a700

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/options/options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ type SizeLimits struct {
3636
APKIndexDecompressedMaxSize int64 `json:"apkIndexDecompressedMaxSize,omitempty"`
3737
// APKControlMaxSize is the maximum decompressed size for APK control sections (default: 10 MB).
3838
APKControlMaxSize int64 `json:"apkControlMaxSize,omitempty"`
39-
// APKDataMaxSize is the maximum decompressed size for APK data sections (default: 4 GB).
39+
// APKDataMaxSize is the maximum decompressed size for APK data sections (default: ~17 GB).
4040
// This protects against gzip bombs.
4141
APKDataMaxSize int64 `json:"apkDataMaxSize,omitempty"`
42-
// HTTPResponseMaxSize is the maximum size for HTTP responses (default: 2 GB).
42+
// HTTPResponseMaxSize is the maximum size for HTTP responses (default: ~9 GB).
4343
HTTPResponseMaxSize int64 `json:"httpResponseMaxSize,omitempty"`
4444
}
4545

@@ -49,7 +49,7 @@ func DefaultSizeLimits() SizeLimits {
4949
APKIndexDecompressedMaxSize: 100 << 20, // 100 MB
5050
APKControlMaxSize: 10 << 20, // 10 MB
5151
APKDataMaxSize: 16 << 30, // ~17 GB
52-
HTTPResponseMaxSize: 2 << 30, // 2 GB
52+
HTTPResponseMaxSize: 8 << 30, // ~9 GB
5353
}
5454
}
5555

0 commit comments

Comments
 (0)