aboutsummaryrefslogtreecommitdiff
path: root/internal/fetch
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2024-10-25 08:58:22 -0400
committerJonathan Amsterdam <jba@google.com>2024-11-08 14:34:36 +0000
commit2e3472f912c5fa2ce9b7bda7db114a289ec70dd3 (patch)
treecaae1cc4dc3354573c30b314853c7ac3bd902478 /internal/fetch
parent2aa6c44990ab54791d376acfb41a7bcea638bfb1 (diff)
downloadgo-x-pkgsite-2e3472f912c5fa2ce9b7bda7db114a289ec70dd3.tar.xz
internal/godoc: increase max doc HTML limit
Double the maximum allowed size of rendered documentation. Increase the maximum file size as well. Also, add information about the documentation size to logs and error messages, so we can see the amount by which the limit was exceeded next time. For golang/go#40576. Change-Id: Ia2aa11915d583e8e0c5ca0e273202a57679bd5f7 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/622556 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cody Oss <codyoss@google.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'internal/fetch')
-rw-r--r--internal/fetch/limit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fetch/limit.go b/internal/fetch/limit.go
index a0dfce39..d86d0ebb 100644
--- a/internal/fetch/limit.go
+++ b/internal/fetch/limit.go
@@ -11,7 +11,7 @@ const (
// MaxFileSize is the maximum filesize that is allowed for reading.
// The fetch process should fail if it encounters a file exceeding
// this limit.
- MaxFileSize = 30 * megabyte
+ MaxFileSize = 45 * megabyte
)
const megabyte = 1000 * 1000