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
{{ message }}
Repository navigation
Allow configuring the TLS handshake timeout for HTTP clients. #178
area/ioGeneral I/O and networking.effort/intermediateInvolves changes that can be worked on by non-experts but might require guidance.status/blockedBlocked on another issue or upstream dependency.type/enhancementAn enhancement in functionality or support.
When building an HTTP client, we should be able to configure a timeout specifically for establishing the TLS handshake with the downstream target system. This is a simple assurance against extended delays trying to connect to unresponsive systems.
Notes
There's no easy way (currently) to do this, as the way hyper-rustls/tokio-rustls are composed has the actual underlying connect future, and the TLS handshake future, all wrapped up in one without any existing ability to configure a timeout.
We would likely need to upstream support for this to tokio-rustls, to even expose a way to configure such a timeout, and then also to hyper-rustls to expose that configuration method in its own HttpsConnectorBuilder.
area/ioGeneral I/O and networking.effort/intermediateInvolves changes that can be worked on by non-experts but might require guidance.status/blockedBlocked on another issue or upstream dependency.type/enhancementAn enhancement in functionality or support.
Activity
webern commentedon Apr 28, 2026
Someone
demo'edrolling your own: rustls/tokio-rustls#4 (comment)feat(tls): add tls_handshake_timeout config option (#2303)
feat(tls): add tls_handshake_timeout config option (#2303)
jszwedko commentedon Aug 12, 2026
Closed by: