@@ -332,14 +332,22 @@ google::cloud::StatusOr<ThroughputOptions> ParseThroughputOptions(
332332 options.direct_path_endpoint = val;
333333 }},
334334 {" --transfer-stall-timeout" ,
335- " configure the storage::TransferStallTimeoutOption: the maximum time"
336- " allowed for data to 'stall' (make no progress) on all operations, "
337- " except for downloads (see --download-stall-timeout)."
335+ " configure ` storage::TransferStallTimeoutOption` : the maximum time"
336+ " allowed for data to 'stall' (make insufficient progress) on all"
337+ " operations, except for downloads (see --download-stall-timeout)."
338338 " This option is intended for troubleshooting, most of the time the"
339339 " value is not expected to change the library performance." ,
340340 [&options](std::string const & val) {
341341 options.transfer_stall_timeout = ParseDuration (val);
342342 }},
343+ {" --transfer-stall-minimum-rate" ,
344+ " configure `storage::TransferStallMinimumRateOption`: the transfer"
345+ " is aborted if the average transfer rate is below this limit for"
346+ " the period set via `storage::TransferStallTimeoutOption`." ,
347+ [&options](std::string const & val) {
348+ options.transfer_stall_minimum_rate =
349+ static_cast <std::uint32_t >(ParseBufferSize (val));
350+ }},
343351 {" --download-stall-timeout" ,
344352 " configure the storage::DownloadStallTimeoutOption: the maximum time"
345353 " allowed for data to 'stall' during a download."
@@ -348,6 +356,14 @@ google::cloud::StatusOr<ThroughputOptions> ParseThroughputOptions(
348356 [&options](std::string const & val) {
349357 options.download_stall_timeout = ParseDuration (val);
350358 }},
359+ {" --download-stall-minimum-rate" ,
360+ " configure `storage::DownloadStallMinimumRateOption`: the download"
361+ " is aborted if the average transfer rate is below this limit for"
362+ " the period set via `storage::DownloadStallTimeoutOption`." ,
363+ [&options](std::string const & val) {
364+ options.download_stall_minimum_rate =
365+ static_cast <std::uint32_t >(ParseBufferSize (val));
366+ }},
351367 {" --minimum-sample-delay" ,
352368 " configure the minimum time between samples."
353369 " Sometimes we only want to collect a few samples per second."
0 commit comments