Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

FtpSettings.TcpKeepAliveInterval Property

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)

TcpKeepAliveInterval

Gets or sets the length of time in seconds that specifies the frequency of TCP keep-alive packets to be sent on idle FTP control connection. Use -1 or 0 to indicate that TCP keep-alive packets should not be sent.

Declaration
public int TcpKeepAliveInterval { get; set; }
Property Value
Type Description
Int32

The length of interval, in seconds, between TCP keep-alive packets sent on idle FTP control connection. Default is 0 (TCP keep-alive packets are not sent).

Remarks

Minimum value is 30. Setting this to a value lower than 30 will set it to 30.

The option is applied to control socket only once after a connection has been establishment. Further changes to the option have no effect.

The option is not applied when a custom ISocket transport layer is used.

The option is needed when the FTP connection is dropped by non-FTP-aware firewalls or routers during very long data transfers.

This option will not prevent the FTP connection from getting dropped by the FTP server due to inactivity.

In This Article
  • TcpKeepAliveInterval
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies