You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now this is kind of hard because tls doesn't offer a DialContextWithDialer, but it might be possible in an upcoming Go version: golang/go#18482.
There's also a potential workaround mentioned in that issue by doing the Dial ourselves and then building a tls.Conn on top of it. May not be worthwhile changing for TLS-SNI, but we should do it right for TLS-ALPN.
The text was updated successfully, but these errors were encountered:
jsha
changed the title
TLS-SNI validation doesn't use Context
TLS-SNI validation's Dial doesn't use Context
Apr 7, 2018
This allows us to have fast-running unittests without modifying the global state in singleDialTimeout,
which can become a const.
Fixes#3628.
Builds on top of #3629, review that first.
Right now this is kind of hard because
tls
doesn't offer aDialContextWithDialer
, but it might be possible in an upcoming Go version: golang/go#18482.There's also a potential workaround mentioned in that issue by doing the Dial ourselves and then building a
tls.Conn
on top of it. May not be worthwhile changing for TLS-SNI, but we should do it right for TLS-ALPN.The text was updated successfully, but these errors were encountered: