From 72a9dec156408a87548deb920a67b8bf787062db Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Fri, 25 Sep 2020 13:30:18 +0300 Subject: [PATCH] doc/go1.16: document net.ErrClosed usage in crypto/tls Change-Id: I130cf79b93c6456dbe87f0042209e204c4e319b2 Reviewed-on: https://go-review.googlesource.com/c/go/+/257457 Reviewed-by: Ian Lance Taylor Reviewed-by: Emmanuel Odeke Trust: Emmanuel Odeke --- doc/go1.16.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/go1.16.html b/doc/go1.16.html index 3164acbb6dc..b2cbb58e1a9 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -164,6 +164,16 @@ Do not send CLs removing the interior tags from such phrases. TODO

+

crypto/tls

+ +

+ I/O operations on closing or closed TLS connections can now be detected using + the new ErrClosed error. A typical use + would be errors.Is(err, net.ErrClosed). In earlier releases + the only way to reliably detect this case was to match the string returned + by the Error method with "tls: use of closed connection". +

+

net