FtpWebRequest.Timeout Property
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
Timeout
Gets or sets the time-out value (in milliseconds) for a request.
Declaration
public override int Timeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Remarks
The length of time, in milliseconds, until the request times out, or the value of -1 or 0 to indicate that the request does not time out. Default is -1.
Timeout is the number of milliseconds that a synchronous request made with the GetResponse() method waits for a response, and the GetRequestStream() methods waits for a stream. If a resource does not respond within the time-out period, the request throws a WebException with the Status property set to Timeout.
The Timeout property has no effect on asynchronous requests made with the BeginGetResponse(AsyncCallback, Object) or BeginGetRequestStream(AsyncCallback, Object) methods.
Minimal value is 1000. Setting this to a value lower than 1000 will set it to 1000.