diff options
| author | Jonathan Amsterdam <jba@google.com> | 2024-10-25 08:58:22 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2024-11-08 14:34:36 +0000 |
| commit | 2e3472f912c5fa2ce9b7bda7db114a289ec70dd3 (patch) | |
| tree | caae1cc4dc3354573c30b314853c7ac3bd902478 /internal/fetch | |
| parent | 2aa6c44990ab54791d376acfb41a7bcea638bfb1 (diff) | |
| download | go-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.go | 2 |
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 |
