Skip to content

fix: increase request header buffer size#123

Merged
mms-gianni merged 9 commits intoeverywall:release/v0.0.23from
anguscloud:codex/increase-read-buffer-size
Apr 27, 2026
Merged

fix: increase request header buffer size#123
mms-gianni merged 9 commits intoeverywall:release/v0.0.23from
anguscloud:codex/increase-read-buffer-size

Conversation

@anguscloud
Copy link
Copy Markdown
Contributor

@anguscloud anguscloud commented Apr 23, 2026

What

Increase Fiber's ReadBufferSize from the 4 KB default to 16 KB.

Why

Fiber's read buffer also limits the maximum incoming request header size. When Ladder is deployed behind reverse proxies such as Cloudflare Tunnel or Nginx Proxy Manager, proxy headers plus browser cookies can exceed the 4 KB default before Ladder's route handlers run.

This fixes 431 Request Header Fields Too Large responses seen with proxied browser requests.

Reproduction

I reproduced this with Ladder behind Cloudflare Tunnel / NPM:

  • normal iOS Safari failed with Request Header Fields Too Large
  • iOS Safari Private Browsing worked
  • clearing Safari website data for the domain fixed normal browsing
  • sending an artificially large Cookie header through the public/proxied hostname reproduced the failure
  • direct IP:PORT access worked, consistent with the separate browser cookie jar and fewer proxy-added headers

Validation

  • gofmt -w cmd/main.go
  • go test ./...

Fixes #89.

mms-gianni and others added 9 commits April 14, 2026 08:32
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v3...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2 to 6.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](pnpm/action-setup@v2...v6)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ions/dot-github/workflows/actions/setup-go-6

Bump actions/setup-go from 3 to 6 in /.github/workflows
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 4.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v2...v4)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ions/dot-github/workflows/docker/login-action-4

Bump docker/login-action from 2 to 4 in /.github/workflows
…ions/dot-github/workflows/pnpm/action-setup-6

Bump pnpm/action-setup from 2 to 6 in /.github/workflows
@anguscloud anguscloud marked this pull request as ready for review April 23, 2026 23:28
@anguscloud anguscloud closed this Apr 23, 2026
@anguscloud anguscloud deleted the codex/increase-read-buffer-size branch April 23, 2026 23:32
@anguscloud anguscloud restored the codex/increase-read-buffer-size branch April 23, 2026 23:32
@anguscloud anguscloud reopened this Apr 23, 2026
@mms-gianni mms-gianni changed the base branch from main to release/v0.0.23 April 27, 2026 08:52
@mms-gianni mms-gianni merged commit f959ae9 into everywall:release/v0.0.23 Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request Header Fields Too Large

2 participants