FTPKEEPALIVE (FTP client and server) statement

Use the FTPKEEPALIVE statement to define the control connection keepalive timer value in seconds. This sets a socket level keepalive timer for the control connection. This allows the keepalive mechanism to send a packet on the idle control connection every FTPKEEPALIVE seconds, and avoid the firewall timing out the control connection.

Server
Specifies how often the server sends a keepalive packet.
Client
Specifies how often the client sends a keepalive packet.

Syntax

Read syntax diagramSkip visual syntax diagram
   .-FTPKEEPALIVE 0-------.   
>>-+----------------------+------------------------------------><
   '-FTPKEEPALIVE seconds-'   

Parameters

seconds
The number of seconds before a keepalive packet is sent out on the FTP control connection. The valid range is 0 (FTPKEEPALIVE not used) or 60 - 86 400. The default is 0.

Examples

Set the FTP keepalive timer to 60 seconds:
FTPKEEPALIVE 60 

Usage notes

If you specify 0 seconds, the FTPKEEPALIVE timer is disabled and the only keepalive packets that flow on the control connection would be controlled by whatever interval for keepalive packets you have configured in the stack.