Skip to content

Commit 7ad776d

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Filippo Valsorda <[email protected]>
1 parent a93a4c1 commit 7ad776d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/go1.15.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,17 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
524524
fields <code>OCSPResponse</code> and <code>SignedCertificateTimestamps</code>
525525
are now repopulated on client-side resumed connections.
526526
</p>
527+
528+
<p><!-- CL 227840 -->
529+
<a href="/pkg/crypto/tls/#Conn"><code>tls.Conn</code></a>
530+
now returns an opaque error on permanently broken connections, wrapping
531+
the temporary
532+
<a href="/pkg/net/http/#Error"><code>net.Error</code></a>. To access the
533+
original <code>net.Error</code>, use
534+
<a href="/pkg/errors/#As"><code>errors.As</code></a> (or
535+
<a href="/pkg/errors/#Unwrap"><code>errors.Unwrap</code></a>) instead of a
536+
type assertion.
537+
</p>
527538
</dd>
528539
</dl><!-- crypto/tls -->
529540

0 commit comments

Comments
 (0)