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 major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the dependencies group with 3 updates in the / directory: github.com/prometheus/client_golang, github.com/quic-go/quic-go and golang.org/x/net.
Updates
github.com/prometheus/client_golang
from 1.20.2 to 1.20.3Release notes
Sourced from github.com/prometheus/client_golang's releases.
Changelog
Sourced from github.com/prometheus/client_golang's changelog.
Commits
ef2f87e
Merge pull request #1620 from prometheus/arthursens/prepare-1.20.3937ac63
Add changelog entry for 1.20.36e9914d
Merge pull request #1608 from krajorama/index-out-of-range-native-histogram-e...d6b8c89
Update comments with more explanations504566f
Use simplified solution from #1609 for the data racedc8e9a4
fix: native histogram: Simplify and fix addExemplardc819ce
Use a trivial solution to #1605e061dfa
native histogram: use exemplars in concurrency testUpdates
github.com/quic-go/quic-go
from 0.46.0 to 0.47.0Release 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)Updates
golang.org/x/net
from 0.28.0 to 0.29.0Commits
35b4aba
go.mod: update golang.org/x dependencies9bf379f
websocket: fix printf(var) mistake detected by latest printf checkerUpdates
golang.org/x/sys
from 0.24.0 to 0.25.0Commits
a43b625
windows: add SIO_UDP_NETRESET constanted67b15
windows: add console codepage api9cb830b
unix: add missing import to syscall_hurd.go71132f5
unix: add POLLRDHUP to FreeBSD3283fc3
cpu: add support for detecting RISC-V extensions29e55b2
unix: use os.Executable rather than os.Args[0] in testsa8c5219
unix: rename XDPUmemReg field back to Size59665e5
unix: add Connectx for darwina0c72ef
unix: add f_flag member flags on z/OSc64c51d
unix: update riscv64 hwprobe to Linux kernel 6.10Dependabot 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