commit | c136d0c937afa54dca414a69603bb1570a28879f | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Tue Dec 19 09:01:27 2023 -0800 |
committer | Damien Neil <dneil@google.com> | Tue Dec 19 18:24:40 2023 +0000 |
tree | 118dd38bad6f7b0752132376675ec27ffc91cd8d | |
parent | f9726a9e4a0fba67ce78802b47601ba194d15b3f [diff] |
quic: avoid panic when PTO expires and implicitly-created streams exist The streams map contains nil entries for implicitly-created streams. (Receiving a packet for stream N implicitly creates all streams of the same type <N.) We weren't checking for nil entries when iterating the map on PTO, resulting in a panic. Change the map value to be a wrapper type to make it more explicit that nil entries exist. Change-Id: I070c6d60631744018a6e6f2645c95a2f3d3d24b6 Reviewed-on: https://go-review.googlesource.com/c/net/+/550798 Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
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.