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.8.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.9.0
Choose a head ref
  • 4 commits
  • 8 files changed
  • 4 contributors

Commits on Mar 7, 2023

  1. html: fix package doc typo

    Change-Id: Ic16f297e936cf10bafe0656f5db68cd422c430aa
    Reviewed-on: https://go-review.googlesource.com/c/net/+/474217
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Roland Shoemaker <roland@golang.org>
    Run-TryBot: Roland Shoemaker <roland@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    rolandshoemaker authored and gopherbot committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    08dda57 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. http2: properly discard data received after request/response body is …

    …closed
    
    A server handler can close an inbound Request.Body to indicate that it
    is not interested in the remainder of the request body.
    
    Equivalently, a client can close a Response.Body indicate that it is
    not interesed in the remainder of the response body.
    
    In both cases, if we receive DATA frames from the peer for the stream,
    we should return connection-level flow control credit for the discarded data.
    We do not return stream-level flow control, since we don't want to unblock
    further sends of data that we're just going to discard.
    
    Closing either a Response.Body or an inbound Request.Body results in a
    pipe.BreakWithError. Reads from a broken pipe fail immediately.
    
    Previously, writes to a broken pipe would succeed, discarding the written
    data and incrementing the pipe's unread count. Silently discarding
    data written to a broken pipe results in both the Transport and Server
    failing to detect the condition where data has been discarded.
    
    Change pipes to return an error when writing to a broken pipe.
    
    Change transportResponseBody.Close to break the response body before
    returning flow control credit for unread data in the pipe, avoiding
    a race condition where data is added to the pipe in between the
    return of flow control credit and the pipe breaking.
    
    Change the Server to treat an error writing to the inbound request
    body as an expected condition (since this only happens when a
    handler closes the request body), returning connection-level
    flow control credit for the discarded data.
    
    Fixes golang/go#57578
    
    Change-Id: I1ed4ea9865818f9c7d7eb4500edfd7556e3cbcbf
    Reviewed-on: https://go-review.googlesource.com/c/net/+/475135
    Run-TryBot: Damien Neil <dneil@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Roland Shoemaker <roland@golang.org>
    neild committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    9f24bb4 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2023

  1. http2: log the correct error when retrying in (*Transport).RoundTripOpt

    On the shouldRetryRequest path, err is invariantly nil, and therefore
    meaningless to log with vlogf. Instead, log the original error returned
    by the call to cc.RoundTrip.
    
    For golang/go#59155.
    
    Change-Id: I82c00a6033d0e92c28a5ccf60a87eec1c8b41886
    Reviewed-on: https://go-review.googlesource.com/c/net/+/477876
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Bryan Mills <bcmills@google.com>
    Auto-Submit: Bryan Mills <bcmills@google.com>
    Reviewed-by: Damien Neil <dneil@google.com>
    Bryan C. Mills authored and gopherbot committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    6960703 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

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

    Update golang.org/x dependencies to their latest tagged versions.
    Once this CL is submitted, and post-submit testing succeeds on all
    first-class ports across all supported Go versions, this repository
    will be tagged with its next minor version.
    
    Change-Id: I2fd2e05ca8edb122059be1918e555952de4941e8
    Reviewed-on: https://go-review.googlesource.com/c/net/+/482776
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Run-TryBot: Gopher Robot <gobot@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Auto-Submit: Gopher Robot <gobot@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    gopherbot committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    694cff8 View commit details
    Browse the repository at this point in the history
Loading