The GetIdleTimeout method returns the server-side
idle timeout value that was most recently set for the control
connection using the SetIdleTimeout method. This value
represents how long the server will wait during periods of
inactivity before automatically closing the connection. If the idle
timeout has not been explicitly set during the session, the method
will return the default timeout value of 300 seconds (5 minutes).
The timeout value is only available if the server supports the
non-standard SITE IDLE command. If the server does not
support this command, this method will fail. In that case, the
default timeout enforced by the server will apply, but the timeout
period cannot be accessed or changed by the client. This method
will also return an error if the session is using SFTP, as that
protocol does not separate control and data channels and does not
support idle timeout settings in the same way.
This method does not query the server for the current idle timeout
value for the control channel. It simply returns the last known value that
was successfully applied during the current session, if available.