Method SFTPClient():setTimeout() Foundation

Sets timeout values.

Syntax
:setTimeout( [<nConnectTimeout>], [<nResponseTimeout>] ) --> self
Parameters
<nConnectTimeout>
The optional connect timeout limits the time in seconds for establishing the initial connection, including DNS resolution. If NIL is passed for this parameter, the current setting is not changed. The default value 0 specifies no timeout (wait indefinitely).
<nResponseTimeout>
The optional response timeout determines the seconds to wait for server responses during operations like data transfers, directory listings and protocol-specific operations like SSH channel setup. If NIL is passed for this parameter, the current setting is not changed. The default value 0 specifies no timeout (wait 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.