]> Cypherpunks repositories - gostls13.git/commit
http: do TLS handshake explicitly before copying TLS state
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 27 Jun 2011 17:37:33 +0000 (10:37 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 27 Jun 2011 17:37:33 +0000 (10:37 -0700)
commit7e29f1add8a4cebf533a70236fd1c9c0b21c1a9a
tree8cc246bad606333f560c02e8a7c7e5e1a3627c49
parent9843ca5e2bb1a3b5ab76348cde006705c1a695d9
http: do TLS handshake explicitly before copying TLS state

Previously we were snapshotting the TLS state into *Request
before we did the HTTP ReadRequest, the first Read of which
triggered the TLS handshake implicitly.

Fixes #1956

R=golang-dev, rsc
CC=agl, golang-dev
https://golang.org/cl/4630072
src/pkg/http/serve_test.go
src/pkg/http/server.go