Skip to content

Allow configuring the TLS handshake timeout for HTTP clients. #178

Closed

Description

@tobz

Context

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.

Activity

  1. added
    area/io
    type/enhancement
    effort/intermediate
    status/blocked
    on Aug 12, 2024
  2. webern commented on Apr 28, 2026

    @webern
    Contributor

    Someone demo'ed rolling your own: rustls/tokio-rustls#4 (comment)

  3. self-assigned this
    on Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ioeffort/intermediatestatus/blockedtype/enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions