]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: add DialWithDialer.
authorAdam Langley <agl@golang.org>
Fri, 28 Feb 2014 14:40:12 +0000 (09:40 -0500)
committerAdam Langley <agl@golang.org>
Fri, 28 Feb 2014 14:40:12 +0000 (09:40 -0500)
commit1f8b2a69ec871c1e4c33b6df4b2127bbafd67495
treec39e246e6459e9795fc7e1245fbf0035807740b1
parentb3e0a8df24e5c98f516e542681bb9a752999dc29
crypto/tls: add DialWithDialer.

While reviewing uses of the lower-level Client API in code, I found
that in many cases, code was using Client only because it needed a
timeout on the connection. DialWithDialer allows a timeout (and
 other values) to be specified without resorting to the low-level API.

LGTM=r
R=golang-codereviews, r, bradfitz
CC=golang-codereviews
https://golang.org/cl/68920045
src/pkg/crypto/tls/tls.go
src/pkg/crypto/tls/tls_test.go