CurlSettings.

RetryCount Property

Summary

Gets or sets the number of times curl should retry a failed operation before giving up. Setting this property to zero means no retries. This is the default value.
Assembly
Cake.Curl.dll
Namespace
Cake.Curl
Containing Type
CurlSettings

Syntax

public uint RetryCount { get; set; }

Remarks

According to curl's documentation, the kinds of errors that qualify for a retry are:
  • Timeouts
  • FTP 4xx responses
  • HTTP
    408
    or 5xx responses
This option can be further tweaked with RetryDelaySeconds and RetryMaxTimeSeconds.

Value

Type Description
uint

See Also