Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: crypto/tls: add request context to ClientHelloInfo and CertificateRequestInfo #32406
In recent Go releases, we've been able to use the handy
Unfortunately, one glaring omission from the API is a connection context for cancellation and request scoped variable propagation. This means users have to implement custom timeouts or block their TLS connections forever in case of problems. It also means powerful tools like tracing and metrics that make use of the context cannot be used.
I propose a
changed the title
crypto/tls: add request context to ClientHelloInfo and CertificateRequestInfo
Jun 3, 2019
It would help if you could elaborate on the various use cases: what you are trying to do in each situation, what doesn't work at the moment, and how a context would help.
I've in the past wanted to surface details of the ClientHelloInfo to net/http Handlers, so I can see the use case, but I'd like to build a generic solution.
My use case specifically is to allow my library (