WgetSettings.

Timeout Property

Summary

Set the network timeout to seconds seconds. This is equivalent to specifying , and , all at the same time.
Assembly
Cake.Wget.dll
Namespace
Cake.Wget
Containing Type
WgetSettings

Syntax

public Nullable<TimeSpan> Timeout { get; set; }

Remarks

When interacting with the network, Wget can check for timeout and abort the operation if it takes too long. This prevents anomalies like hanging reads and infinite connects. The only timeout enabled by default is a 900-second read timeout. Setting a timeout to 0 disables it altogether. Unless you know what you are doing, it is best not to change the default timeout settings.

Setting a timeout to 0 disables it altogether. Unless you know what you are doing, it is best not to change the default timeout settings.

All timeout-related options accept values, as well as subsecond values. For example, 0.1 seconds is a legal (though unwise) choice of timeout. Subsecond timeouts are useful for checking server response times or for testing network latency.

Attributes

Type Description
WgetArgumentNameAttribute

Value

Type Description
Nullable<TimeSpan>

See Also