Struct HttpConnectTimeoutOption (3.14.0-rc)

Sets the TCP/TLS connection timeout.

If the connection cannot be established within this time, the request is aborted. This is useful as a fail-safe against OS-level TCP locks during severe network routing anomalies.

This applies to all requests, not just downloads, and it only bounds establishing the connection: it has no effect once bytes start flowing. Use TransferStallTimeoutOption and DownloadStallTimeoutOption to bound stalled transfers.

Type Aliases

Type

Alias Of: std::chrono::milliseconds