]> Cypherpunks repositories - gostls13.git/commit
http, crypto/tls: fix read timeouts and closing.
authorAdam Langley <agl@golang.org>
Tue, 18 Oct 2011 16:59:32 +0000 (12:59 -0400)
committerAdam Langley <agl@golang.org>
Tue, 18 Oct 2011 16:59:32 +0000 (12:59 -0400)
commit9d99d52fcb898433d58c861bd942b2caec22c16f
tree7dd540287a1ebf890f89e559bb993c8c3b154d54
parent7bc4f8de0fc91b209265f797fd20820914f5baaa
http, crypto/tls: fix read timeouts and closing.

tls.Conn.Close() didn't close the underlying connection and tried to
do a handshake in order to send the close notify alert.

http didn't look for errors from the TLS handshake.

Fixes #2281.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5283045
src/pkg/crypto/tls/conn.go
src/pkg/http/serve_test.go
src/pkg/http/server.go