RepoJournal
Go

@golang

Go and the standard library - backend infrastructure at scale

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Go Infrastructure Full archive →

The Wire · Showcase

HTTP/2 TRAILER TRUNCATION BUG FIXED, HEADER LIMITS TIGHTENED ACROSS THE STACK

By RepoJournal · Filed · About Go

Go's HTTP/2 implementation was silently dropping trailer headers that exceeded limits instead of erroring, a behavior now corrected alongside new per-server header count controls.

The most critical fix lands in net/http/internal/http2 [1], where trailers exceeding MaxResponseHeaderBytes would vanish without warning. That's the kind of silent data loss that surfaces months later in production. Paired with this, net/http gains a new MaxHeaderValueCount setting [2] that lets you limit header quantity while keeping MaxHeaderBytes high for legitimate large headers like SSO cookies, a real pain point for OIDC-heavy deployments. Meanwhile, math/big patches an edge case in float formatting [3] where trailing-zero trimming could push the index past the mantissa bounds, and golang/sync hardens semaphore.Weighted to panic on negative weights [4] instead of silently corrupting internal state. The tools ecosystem saw goimports skip js/wasm test execution [6] to fix CI noise, and gopls regained semantic token backwards compatibility [7] with v0.11.0 clients. One revert [5] pulled a header timeout check for HTTP/2 to keep rc2 consistent with the minors branch until rc3.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] net/http/internal/http2: do not silently truncate large trailers golang/go
  2. [2] net/http: add Server.MaxHeaderValueCount setting golang/go
  3. [3] math/big: fix edge case float formatting golang/go
  4. [4] semaphore: panic on negative weights golang/sync
  5. [5] Revert "net/http: apply header timeout to server's unencrypted HTTP/2 check" golang/go
  6. [6] cmd/goimports: skip TestCmd on js/wasm golang/tools
  7. [7] gopls/internal/test: have semtok work with gopls@v0.11.0 golang/tools

Quick answers

What shipped in Go on July 2, 2026?
Go's HTTP/2 implementation was silently dropping trailer headers that exceeded limits instead of erroring, a behavior now corrected alongside new per-server header count controls. In total, 9 commits landed.
What were the notable Go updates?
net/http/internal/http2: do not silently truncate large trailers, net/http: add Server.MaxHeaderValueCount setting, and math/big: fix edge case float formatting.

More from @golang

Daily updates, in your inbox

Follow Go

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.