Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/net
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.31.0
Choose a base ref
...
head repository: golang/net
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.33.0
Choose a head ref
  • 15 commits
  • 34 files changed
  • 9 contributors

Commits on Nov 22, 2024

  1. http2: add SETTINGS_ENABLE_CONNECT_PROTOCOL support

    For golang/go#49918
    
    Change-Id: Ibcd8fb189200c0976cf1bd03a796abae4afa4cfd
    GitHub-Last-Rev: cba5ecd
    GitHub-Pull-Request: #221
    Reviewed-on: https://go-review.googlesource.com/c/net/+/610977
    Reviewed-by: Damien Neil <dneil@google.com>
    Auto-Submit: Damien Neil <dneil@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    WeidiDeng authored and gopherbot committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    9a51899 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. route: fix parse of zero-length sockaddrs in RIBs

    Zero-length sockaddrs were observed in RIBs within golang/go#70528.
    These records are to be skipped, and an invariant for later slice
    manipulation is to be enforced by a defensive check in parseAddr.
    
    Fixes golang/go#70528
    
    Change-Id: I4b8b5bd2339bbadc1d1be1ce14deeb6dd3b8e536
    GitHub-Last-Rev: 066ba8a
    GitHub-Pull-Request: #228
    Reviewed-on: https://go-review.googlesource.com/c/net/+/631475
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Damien Neil <dneil@google.com>
    raggi authored and gopherbot committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    e9cd716 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2024

  1. http2: limit number of PINGs bundled with RST_STREAMs

    gRPC has an unfortunate behavior of stictly rate limiting
    the number of PING frames that it will receive. The default is
    two PING frames every two hours when no requests are in flight;
    two PING frames every five minutes when a request is in flight;
    and the limit resets every time the gRPC endpoint sends a
    HEADERS or DATA frame.
    
    When sending a RST_STREAM frame, the Transport can bundle a PING
    frame with it to confirm the server is responding. When canceling
    several requests in succession, this can result in hitting the
    gRPC ping limit.
    
    Work around this gRPC behavior by sending at most one bundled
    PING per HEADERS or DATA  frame received. We already limit
    ourselves to one PING in flight at a time; now, when we receive
    a PING response, disable sending additional bundled PINGs
    until we read a HEADERS/DATA frame.
    
    This does not affect keep-alive pings.
    
    Fixes golang/go#70575.
    
    Change-Id: I7c4003039bd2dc52106b2806ca31eeeee37b7e09
    Reviewed-on: https://go-review.googlesource.com/c/net/+/632995
    Reviewed-by: Jonathan Amsterdam <jba@google.com>
    Auto-Submit: Damien Neil <dneil@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    neild authored and gopherbot committed Dec 2, 2024
    Configuration menu
    Copy the full SHA
    bc37675 View commit details
    Browse the repository at this point in the history
  2. route: change from syscall to x/sys/unix

    This lets us drop some of the defs files and cgo usage.
    
    Change-Id: I5a00e77610da36c752d28ea07e40b8a9c7c59ae4
    Reviewed-on: https://go-review.googlesource.com/c/net/+/632816
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: Damien Neil <dneil@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    ianlancetaylor authored and gopherbot committed Dec 2, 2024
    Configuration menu
    Copy the full SHA
    4be1253 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2024

  1. http2: fix benchmarks using common frame read/write functions

    CL 586249 unified frame read/write functions used by client
    and server tests, but inadvertently broke some benchmarks.
    Fix those benchmarks.
    
    This mostly restores the previous behavior of the affected
    benchmarks (for example, testing only to see that a DATA frame
    contains an END_STREAM marker, ignoring the number of bytes
    in the frame).
    
    Fixes golang/go#70647
    
    Change-Id: I2b0099c3513ac8754d11c4e37b7d63277a0fb0b1
    Reviewed-on: https://go-review.googlesource.com/c/net/+/633055
    Auto-Submit: Damien Neil <dneil@google.com>
    Reviewed-by: Jonathan Amsterdam <jba@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Antonio Ojea <aojea@google.com>
    neild authored and gopherbot committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    6e41410 View commit details
    Browse the repository at this point in the history
  2. route: remove unused sizeof* consts on freebsd

    The sizeofSockaddr* consts were replaced by the respective x/sys/unix
    consts by CL 632816.
    
    The sizeofIfDataFreeBSD* consts were never used since they were added.
    
    Cq-Include-Trybots: luci.golang.try:x_net-gotip-freebsd-amd64
    Change-Id: Ieb0e01353199e08659d45cdc3293e817b679fed5
    Reviewed-on: https://go-review.googlesource.com/c/net/+/633155
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Damien Neil <dneil@google.com>
    Reviewed-by: Damien Neil <dneil@google.com>
    tklauser authored and gopherbot committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    d0a1049 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2024

  1. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: I5db578f0e340dbf37012f580b307155806d55993
    Reviewed-on: https://go-review.googlesource.com/c/net/+/633584
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Gopher Robot <gobot@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: David Chase <drchase@google.com>
    gopherbot committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    285e1cf View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2024

  1. Revert "route: remove unused sizeof* consts on freebsd"

    This reverts CL 633155.
    
    Reason for revert: This is part of a short chain of CLs that causes
    x/net to depend on x/sys. We have a policy that prevents us from
    vendoring x/sys into std, but x/net needs to be vendored.
    
    Change-Id: Ib773f21dee59fe6f4afb7ba1d7ae01d8859110c6
    Reviewed-on: https://go-review.googlesource.com/c/net/+/634255
    Auto-Submit: Michael Knyszek <mknyszek@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    mknyszek authored and gopherbot committed Dec 6, 2024
    Configuration menu
    Copy the full SHA
    13a7c01 View commit details
    Browse the repository at this point in the history
  2. Revert "route: change from syscall to x/sys/unix"

    This reverts CL 632816.
    
    Reason for revert: This CL causes x/net to depend on x/sys. We have a
    policy that prevents us from vendoring x/sys into std, but x/net
    needs to be vendored.
    
    Change-Id: I0fe3bc9861d559d888db6fa7febd48a201f060b8
    Reviewed-on: https://go-review.googlesource.com/c/net/+/634196
    Auto-Submit: Michael Knyszek <mknyszek@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    mknyszek authored and gopherbot committed Dec 6, 2024
    Configuration menu
    Copy the full SHA
    552d8ac View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2024

  1. quic: handle ACK frame in packet which drops number space

    Avoid incorrectly closing a connection with a protocol violation
    error when we receive a single packet containing a CRYPTO frame
    that causes us to drop a packet number space (forgetting what
    packet numbers we've sent in that space) followed by an ACK frame.
    
    Fixes golang/go#70703
    
    Change-Id: I37554cb6a3086736cb9d772f8a3441b544d414dc
    Reviewed-on: https://go-review.googlesource.com/c/net/+/634616
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Damien Neil <dneil@google.com>
    Reviewed-by: Jonathan Amsterdam <jba@google.com>
    neild authored and gopherbot committed Dec 10, 2024
    Configuration menu
    Copy the full SHA
    4ef7588 View commit details
    Browse the repository at this point in the history
  2. quic: clean up crypto streams when dropping packet protection keys

    When dropping packet protection keys for a number space:
    
    Check to see if there is unused CRYPTO data received from the peer
    in the space. If so, close the connection with an error. This can
    only happen if the peer has sent us data with a gap in it. We
    can never read the data that fills that gap (because we're dropping
    the key it would be encrypted with), and this situation cannot
    happen without the peer sending invalid TLS handshake data.
    
    Drop any buffered CRYPTO data being sent to the peer.
    Under normal operations, we may have data that was sent to the peer
    but which we haven't received an ACK for yet. The peer has
    received the data (or we wouldn't be dropping the number space)
    and we will never see the ACK (because we're dropping the key it
    would be encrypted with).
    
    Fixes golang/go#70704
    
    Change-Id: I53380169cb59a2a6f87e69b38522ba81ad38c2b0
    Reviewed-on: https://go-review.googlesource.com/c/net/+/634617
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Jonathan Amsterdam <jba@google.com>
    Auto-Submit: Damien Neil <dneil@google.com>
    neild authored and gopherbot committed Dec 10, 2024
    Configuration menu
    Copy the full SHA
    6705db9 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2024

  1. route: remove unused sizeof* consts

    These were never used since they were added in CL 22446.
    
    Cq-Include-Trybots: luci.golang.try:x_net-gotip-freebsd-amd64,x_net-gotip-darwin-arm64_13
    Change-Id: I1d5952ec299ea22f2f0c62da552638ba0438a15b
    Reviewed-on: https://go-review.googlesource.com/c/net/+/635135
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    tklauser authored and gopherbot committed Dec 12, 2024
    Configuration menu
    Copy the full SHA
    9af49ef View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2024

  1. html: avoid endless loop on error token

    Fixes #70179
    
    Change-Id: I2a0a1fc2e96f7d8eefd0abdf7ef8ba243a6e8645
    GitHub-Last-Rev: a601ecd
    GitHub-Pull-Request: #226
    Reviewed-on: https://go-review.googlesource.com/c/net/+/624895
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    yincongcyincong authored and gopherbot committed Dec 18, 2024
    Configuration menu
    Copy the full SHA
    b935f7b View commit details
    Browse the repository at this point in the history
  2. html: use strings.EqualFold instead of lowering ourselves

    Instead of using strings.ToLower and == to check case insensitive
    equality, just use strings.EqualFold, even when the strings are only
    ASCII. This prevents us unnecessarily lowering extremely long strings,
    which can be a somewhat expensive operation, even if we're only
    attempting to compare equality with five characters.
    
    Thanks to Guido Vranken for reporting this issue.
    
    Fixes golang/go#70906
    Fixes CVE-2024-45338
    
    Change-Id: I323b919f912d60dab6a87cadfdcac3e6b54cd128
    Reviewed-on: https://go-review.googlesource.com/c/net/+/637536
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
    rolandshoemaker authored and gopherbot committed Dec 18, 2024
    Configuration menu
    Copy the full SHA
    8e66b04 View commit details
    Browse the repository at this point in the history
  3. go.mod: update golang.org/x dependencies

    Update golang.org/x dependencies to their latest tagged versions.
    
    Change-Id: I471c86e74526efc14e23be5635951a56cf2643ec
    Reviewed-on: https://go-review.googlesource.com/c/net/+/637575
    Auto-Submit: Gopher Robot <gobot@golang.org>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    Reviewed-by: Damien Neil <dneil@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    gopherbot committed Dec 18, 2024
    Configuration menu
    Copy the full SHA
    dfc720d View commit details
    Browse the repository at this point in the history
Loading