Click or drag to resize

FtpKeepAliveDuringTransfer Method

Sets the interval, at which a NOOP command is sent on the control conenction during a file transfer.

Namespace:  Limilabs.FTP.Client
Assembly:  Ftp (in Ftp.dll) Version: 2.0.22214.1022
Syntax
public void KeepAliveDuringTransfer(
	TimeSpan noopInterval
)

Parameters

noopInterval
Type: SystemTimeSpan
Specifies interval at which a NOOP command will be sent on the control conenction during transfer. Zero indicates that no NOOP command should be sent.
Remarks
Setting keep alive can be useful to prevent routers from prematurely closing the command channel while a long data transfer is taking place. It is generally not necessary to set a value less than 15 minutes (900 seconds). Not all FTP servers support receiving NOOP commands during file transfers. It's been observed that these servers will act strangely: not reply to the command, or only send the reply after the file transfer has completed. This will cause the component to throw a timeout exception since it's expecting a reply within the timeout period. If you see this behavior, consider not using this method.
See Also