From: Ainar Garipov Date: Fri, 25 Sep 2020 10:30:18 +0000 (+0300) Subject: doc/go1.16: document net.ErrClosed usage in crypto/tls X-Git-Tag: go1.16beta1~919 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=72a9dec156408a87548deb920a67b8bf787062db;p=gostls13.git 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 --- diff --git a/doc/go1.16.html b/doc/go1.16.html index 3164acbb6d..b2cbb58e1a 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