Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/net/http2: split cookie header as recommended by spec #29386
As per 184.108.40.206, To allow for better compression efficiency, the Cookie header field MAY be split into separate header fields, each with one or more cookie-pairs.
After some tests, it does positively impact compression rate and reduces the eviction rate on the dynamic table (flavor may vary depending traffic patterns).
Updates bundled http2 to x/net git rev ef20fe5d7 for: http2: make Transport.IdleConnTimeout consider wall (not monotonic) time https://golang.org/cl/208798 (#29308) http2: make CipherSuites validation error more verbose https://golang.org/cl/200317 (#34776) http2: track unread bytes when the pipe is broken https://golang.org/cl/187377 (#28634) http2: split cookie pair into separate hpack header fields https://golang.org/cl/155657 (#29386) Fixes #29308 Fixes #28634 Change-Id: I71a03ca62ccb5ff35a5cfadd8dc705a4491ae7ea Reviewed-on: https://go-review.googlesource.com/c/go/+/209077 Reviewed-by: Ian Lance Taylor <email@example.com>