If a transfer (upload, download, or request) stalls, i.e., no bytes are sent or received for a significant period, it may be better to restart the transfer as this may indicate a network glitch. For downloads the google::cloud::storage::DownloadStallTimeoutOption takes precedence.
For large requests (e.g. downloads in the GiB to TiB range) this is a better configuration parameter than a simple timeout, as the transfers will take minutes or hours to complete. Relying on a timeout value for them would not work, as the timeout would be too large to be useful. For small requests, this is as effective as a timeout parameter, but maybe unfamiliar and thus harder to reason about.
[[["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 2025-04-01 UTC."],[[["The content focuses on the `TransferStallTimeoutOption` within the Google Cloud Storage C++ library, specifically detailing its functionality across various library versions."],["The `TransferStallTimeoutOption` is used to determine the duration of inactivity during a data transfer (upload, download, or request) before considering it stalled and potentially needing a restart."],["The latest version, `2.37.0-rc`, is highlighted alongside an extensive list of prior releases, ranging from version `2.36.0` down to `2.11.0`, each associated with the `TransferStallTimeoutOption`."],["For downloads, the `DownloadStallTimeoutOption` takes precedence over `TransferStallTimeoutOption`."],["This timeout option is preferred over simple timeouts for very large transfers that may take minutes or hours, and for small transfers it works just as well as a simple timeout."]]],[]]