If you are using the default ftpd, try "man ftpd". Otherwise, you may need to review the documentation on your alternative ftp server.
The man page lists options that the daemon can be started with, which include:
-t TimeOut Logs out inactive sessions after the number of seconds specified by
the TimeOut variable. The default limit is 15 minutes (900 seconds).
-T MaxTimeOut Logs out inactive client sessions after a maximum number of
seconds specified by the MaxTimeOut variable. The default limit is 2 hours (7200
seconds).
Hope that helps.