Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
Loading...
Searching...
No Matches
Public Types | List of all members
google::cloud::storage::DownloadStallTimeoutOption Struct Reference

Sets the download stall timeout. More...

#include <google/cloud/storage/options.h>

Public Types

using Type = std::chrono::seconds
 

Detailed Description

Sets the download stall timeout.

If a download stalls, i.e., no bytes are received for a significant period, it may be better to restart the download as this may indicate a network glitch.

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.

Member Typedef Documentation

◆ Type