]> Cypherpunks repositories - gostls13.git/commit
net: export ErrClosed
authorIan Lance Taylor <iant@golang.org>
Tue, 25 Aug 2020 04:42:20 +0000 (21:42 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Aug 2020 22:48:00 +0000 (22:48 +0000)
commite9ad52e46dee4b4f9c73ff44f44e1e234815800f
treeda4b86268d81c3538501f63534bce3b16d8f0277
parent694fc8e76bec99b67bbd0302852f6a1c1dafe7ca
net: export ErrClosed

This permits programs to reliably detect whether they are using a
closed network connection.

Fixes #4373

Change-Id: Ib4ce8cc82bbb134c4689f0ebc8b9b11bb8b32a22
Reviewed-on: https://go-review.googlesource.com/c/go/+/250357
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Russ Cox <rsc@golang.org>
doc/go1.16.html
src/net/error_test.go
src/net/net.go