Struct HttpConnectTimeoutOption (3.14.0-rc)
Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-04 UTC."],[],[]]