Method FTPClient2():setTimeout() Foundation

Sets timeout values.

Syntax
:setTimeout( [<nConnectTimeout>], [<nResponseTimeout>], [<nAcceptTimeout>] ) --> self
Parameters
<nConnectTimeout>
Specifies an optional connect timeout in seconds, defaulting to 0 (waits indefinitely). The connect timeout limits the time allowed for establishing the initial connection, including DNS resolution, TCP connect, and SSL/TLS handshake. If NIL is passed for this parameter, the current setting is not changed.
<nResponseTimeout>
Specifies an optional response timeout in seconds, defaulting to 0 (waits indefinitely). The response timeout determines how long to wait for server responses during data transfer operations. If NIL is passed for this parameter, the current setting is not changed. A value of 0 means no timeout (waits indefinitely).
<nAcceptTimeout>
Specifies an optional accept timeout in seconds, defaulting to 0 (waits indefinitely). The accept timeout controls how long to wait when accepting connections in active mode. If NIL is passed for this parameter, the current setting is not changed. A value of 0 means no timeout (waits indefinitely).
Return

This method returns self.

Description

Configures timeout settings for the FTP connection. Each parameter controls a timeout for a different aspect of an operation. If any of the specified timeouts is exceeded, the current operation fails.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.