mirror of https://github.com/golang/go.git
doc/go1.15: document crypto/tls permanent error
Fixes #40554 Change-Id: Icc71cb9bab3d1efaa8e586c71cc38bc1d0d1e676 Reviewed-on: https://go-review.googlesource.com/c/go/+/247698 Run-TryBot: Katie Hockman <katie@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org>
This commit is contained in:
parent
a93a4c1780
commit
7ad776dda5
|
|
@ -524,6 +524,17 @@ Do not send CLs removing the interior tags from such phrases.
|
||||||
fields <code>OCSPResponse</code> and <code>SignedCertificateTimestamps</code>
|
fields <code>OCSPResponse</code> and <code>SignedCertificateTimestamps</code>
|
||||||
are now repopulated on client-side resumed connections.
|
are now repopulated on client-side resumed connections.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p><!-- CL 227840 -->
|
||||||
|
<a href="/pkg/crypto/tls/#Conn"><code>tls.Conn</code></a>
|
||||||
|
now returns an opaque error on permanently broken connections, wrapping
|
||||||
|
the temporary
|
||||||
|
<a href="/pkg/net/http/#Error"><code>net.Error</code></a>. To access the
|
||||||
|
original <code>net.Error</code>, use
|
||||||
|
<a href="/pkg/errors/#As"><code>errors.As</code></a> (or
|
||||||
|
<a href="/pkg/errors/#Unwrap"><code>errors.Unwrap</code></a>) instead of a
|
||||||
|
type assertion.
|
||||||
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- crypto/tls -->
|
</dl><!-- crypto/tls -->
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue