]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: set Deadline before sending close notify alert
authorKatie Hockman <katie@golang.org>
Wed, 28 Oct 2020 19:13:33 +0000 (15:13 -0400)
committerKatie Hockman <katie@golang.org>
Sat, 7 Nov 2020 02:12:20 +0000 (02:12 +0000)
commitc9b9cd73bb7a7828d34f4a7844f16c3fbc0674dd
tree0564a331780d6dd47ce03bd76d8887269bfc8b96
parentf7ef5ca54a103ed67425e1efe6d39d3bc8067bad
crypto/tls: set Deadline before sending close notify alert

This change also documents the need to set a Deadline before
calling Read or Write.

Fixes #31224

Change-Id: I89d6fe3ecb0a0076b4c61765f61c88056f951406
Reviewed-on: https://go-review.googlesource.com/c/go/+/266037
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
doc/go1.16.html
src/crypto/tls/conn.go