]> Cypherpunks repositories - gostls13.git/commit
net: support error.Is of network errors and context errors
authorIan Lance Taylor <iant@golang.org>
Thu, 31 Mar 2022 00:26:21 +0000 (17:26 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 3 Apr 2022 15:43:15 +0000 (15:43 +0000)
commit85b5f86584686677c554b2538a7edee96d684aea
tree2a9dec6e9b16ebecbbfd4791ea6dc100d913a0ec
parent73a81d84b644da13bb11ce2e63d7f61041f7ebac
net: support error.Is of network errors and context errors

Change timeouts to be Is(context.DeadlineExceeded) and cancelation to
be Is(context.Canceled).

Fixes #51428

Change-Id: Ic580bd9da0f338e993fb79138875a78d99cc1a1d
Reviewed-on: https://go-review.googlesource.com/c/go/+/396877
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
doc/go1.19.html
src/net/error_test.go
src/net/net.go