]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: check errors from (*Conn).writeRecord
authorTamir Duberstein <tamird@gmail.com>
Fri, 26 Feb 2016 19:17:29 +0000 (14:17 -0500)
committerAdam Langley <agl@golang.org>
Wed, 2 Mar 2016 18:20:46 +0000 (18:20 +0000)
commit37c28759ca46cf381a466e32168a793165d9c9e9
tree2a6a5d1dc0b6888583ce6d0d3641d4bfe947a700
parent1012892f1e6329d5581ad82a20ababa5548d8dc2
crypto/tls: check errors from (*Conn).writeRecord

This promotes a connection hang during TLS handshake to a proper error.
This doesn't fully address #14539 because the error reported in that
case is a write-on-socket-not-connected error, which implies that an
earlier error during connection setup is not being checked, but it is
an improvement over the current behaviour.

Updates #14539.

Change-Id: I0571a752d32d5303db48149ab448226868b19495
Reviewed-on: https://go-review.googlesource.com/19990
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/tls/conn.go
src/crypto/tls/handshake_client.go
src/crypto/tls/handshake_client_test.go
src/crypto/tls/handshake_server.go
src/crypto/tls/handshake_server_test.go