commit | 1bb09e6b1e6cbe43c5034c99133d866b60ea81fa | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Thu Jun 15 09:52:00 2023 -0700 |
committer | Damien Neil <dneil@google.com> | Tue Jun 27 15:03:24 2023 +0000 |
tree | dfa02574ed6d6a6ba5f4ee72db05958e5b951677 | |
parent | 952fc9c67e96e9f1be740da52245cba3cb2ed0bb [diff] |
quic: pass the connection ID length into 1-RTT packet parsing 1-RTT packets contain a variable-length connection ID field, but no indication of the length of the connection ID. The recipient of the packet has chosen the connection ID, and is expected to either choose a consistent length or encode the length in the connection ID. Change the parse1RTTPacket function to take the connection ID length as an input, rather than assuming that all 1-RTT packets contain our hardcoded connection ID length. This permits using parse1RTTPacket in tests which may create and parse packets using other lengths. For golang/go#58547 Change-Id: I9d09e4a0041051be1604c9146f6db9ca959ad696 Reviewed-on: https://go-review.googlesource.com/c/net/+/504856 Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.