This release adds support for HTTP/3 Trailers, for both the server and the client side (#4581, #4630, #4656, #4639). Trailers work exactly the same way as for HTTP/1.1 and HTTP/2.
A big thank you to @sudorandom for contributing this feature!
Fixes
idle timeout calculation when the peer sends a max_idle_timeout of 0 (or omits the transport parameter): #4666
fix handling of corrupted coalesced 1-RTT packets: #4663
qpack: don't reject literal field lines with name references if N bit is set to 1: quic-go/qpack#52
http3: correctly set the http.Response.ContentLength on responses that don't set the Content-Length header: #4645
http3: reject connection-specific header fields (Connection, Keep-Alive, Proxy-Connection, Transfer-Encoding, Upgrade and TE != "trailers"): #4646, #4655
Breaking Changes
quic.VersionNumber and logging.VersionNumber were removed: #4627
Heads-Up
@sukunrt recently discovered and reported a race condition in the new time.Timer stopping logic introduced in Go 1.23. This manifests as a connection deadlock in quic-go. See #4659 and golang/go#69312 for more details. The new behavior is enabled when compiling with Go 1.23.x, and when the Go version in go.mod is set to Go 1.23.x.
Until this issue is fixed, it is recommended to either use Go 1.22.x, or to use GODEBUG="asynctimerchan=1" when compiling quic-go.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/quic-go/quic-go from 0.44.0 to 0.47.0.
Release notes
Sourced from github.com/quic-go/quic-go's releases.
... (truncated)
Commits
8fc04bf
fix calculation of idle timeout when the peer sets max_idle_timeout to 0 (#4666)1ad36eb
http3: avoid re-parsing of the Content-Length header for responses (#4648)b92bf0c
http3: initialize trailer map with empty trailer entries when parsing the hea...4f48b2c
update qpack to v0.5.1 (#4664)9478a67
ci: control concurrency of the interop Docker image builder (#4665)09c2ac8
http3: add HTTP Trailer support for servers (#4630)ad8f3c0
fix handling of corrupted coalesced 1-RTT packets (#4663)4be70e0
protocol: use the packet number decoding / encoding logic from the RFC (#4661)135b8c0
interop: fix server setup for the HTTP/0.9 server (#4658)26a3525
http3: reject connection-specific header fields, check value of TE (#4655)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show