Problem with KeepAliveInterval

The KeepAliveInterval is not working.

What is the dimension of KeepAliveInterval (ms, s, min)?

When i used:
KeepAliveInterval := 3600;
or
KeepAliveInterval := 999999;
has no reaction.

The maximum when i measuring is ~170 seconds.

Regards,
Gregory

The unit is seconds.

And why can change the KeepAliveInterval to a greater value?

e.g. KeepAliveInterval := 3600;

Regards,
Gregory

Please try the new version: https://www.smartftp.com/ftplib/download

It should correct the problem.

I have download the new version but not working.
If KeepAliveInterval greater than 240 seconds then no NOOP Command is sent.

My Tests:
KeepAliveInterval := 60; -> o.k.
KeepAliveInterval := 120; -> o.k.
KeepAliveInterval := 180; -> o.k.
KeepAliveInterval := 240; -> o.k.
KeepAliveInterval := 300; -> not o.k.
KeepAliveInterval := 360; -> not o.k.
KeepAliveInterval := 400; -> not o.k.

Regards,
Gregory

Please post the log from the log file (pFTP->LogFile->File).

I have make 2 test.

KeepAliveInterval := 180s is o.k.
[20100510 17:25:07] SmartFTP FTP Library 2.0.70.0

[20100510 17:25:07] 

[20100510 17:25:07] 

[20100510 17:25:07] 

[20100510 17:25:07] 

[20100510 17:25:07] 

[20100510 17:25:07] 

[20100510 17:25:07] 220-

[20100510 17:25:07]  Hello (not logged in) from 192.168.1.12 !

[20100510 17:25:07]  

[20100510 17:25:07]    Current statistics:

[20100510 17:25:07]            - Version : Gene6 FTP Server v3.10.0 (Build 2)

[20100510 17:25:07]            - OS : Windows NT 5.2 Service Pack 2 with 2 GBytes

[20100510 17:25:07]            - CPU : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz

[20100510 17:25:07]  

[20100510 17:25:07]            - Domain : sweethome.org

[20100510 17:25:07]            - Uptime : 03d00:39:43

[20100510 17:25:07]            - SSL :  Enabled

[20100510 17:25:07]            - Connected user(s) : 1/Unlimited

[20100510 17:25:07]  

[20100510 17:25:07]            - Files served : 1182

[20100510 17:25:07]            - Served : 16.573 GBytes

[20100510 17:25:07]            - Received : 844.124 KBytes

[20100510 17:25:07]  

[20100510 17:25:07]            - Current Speed : 240 Bytes/s

[20100510 17:25:07]            - Average Speed : 66.437 KBytes/s

[20100510 17:25:07]  

[20100510 17:25:07] 220 ready...

[20100510 17:25:07] USER testuser

[20100510 17:25:07] 331 Password required for testuser.

[20100510 17:25:07] PASS 

[20100510 17:25:07] 230 User testuser logged in.

[20100510 17:25:07] SYST

[20100510 17:25:07] 215 UNIX Type: L8

[20100510 17:25:07] 

[20100510 17:25:07] RTT: 32.260 ms

[20100510 17:25:07] FEAT

[20100510 17:25:07] 211-Extensions supported:

[20100510 17:25:07]  AUTH TLS

[20100510 17:25:07]  CCC

[20100510 17:25:07]  CLNT

[20100510 17:25:07]  CPSV

[20100510 17:25:07]  EPRT

[20100510 17:25:07]  EPSV

[20100510 17:25:07]  MDTM

[20100510 17:25:07]  MFCT

[20100510 17:25:07]  MFMT

[20100510 17:25:07]  MLST type*;size*;create;modify*;

[20100510 17:25:07]  MODE Z

[20100510 17:25:07]  PASV

[20100510 17:25:07]  PBSZ

[20100510 17:25:07]  PROT

[20100510 17:25:07]  REST STREAM

[20100510 17:25:07]  SIZE

[20100510 17:25:07]  SSCN

[20100510 17:25:07]  TVFS

[20100510 17:25:07]  UTF8

[20100510 17:25:07]  XCRC "filename" SP EP

[20100510 17:25:07]  XMD5 "filename" SP EP

[20100510 17:25:07]  XSHA1 "filename" SP EP

[20100510 17:25:07] 211 End.

[20100510 17:25:07] CLNT TurboFTP 1.0.10.8

[20100510 17:25:07] 200 Noted.

[20100510 17:25:07] OPTS UTF8 ON

[20100510 17:25:07] 200 UTF8 OPTS ON

[20100510 17:25:07] OPTS MLST type;size;create;modify;

[20100510 17:25:07] 200 MLST OPTS type;size;create;modify;

[20100510 17:25:07] 

[20100510 17:25:07] PWD

[20100510 17:25:07] 257 "/" is current directory.

[20100510 17:25:07] TYPE I

[20100510 17:25:07] 200 Type set to I.

[20100510 17:25:07] SIZE /public/Testfile.rar

[20100510 17:25:07] 213 21232065520

[20100510 17:25:07] PBSZ 0

[20100510 17:25:07] 200 PBSZ=0

[20100510 17:25:07] PROT C

[20100510 17:25:07] 200 PROT command successful.

[20100510 17:25:07] PASV

[20100510 17:25:07] 227 Entering Passive Mode (127,0,0,1,197,116)

[20100510 17:25:07] 

[20100510 17:25:07] 

[20100510 17:25:07] 

[20100510 17:25:07] RETR /public/Testfile.rar

[20100510 17:25:07] 150 Data connection accepted from 192.168.1.12:57851; transfer starting for /public/Testfile.rar (21232065520 bytes)

[20100510 17:28:08] NOOP

[20100510 17:28:08] 200 NOOP command successful.

[20100510 17:31:08] NOOP

[20100510 17:31:08] 200 NOOP command successful.

[20100510 17:34:09] NOOP

[20100510 17:34:09] 200 NOOP command successful.

[20100510 17:34:24] ABOR                                                 <<<<----- At this point I have aborted it. It's all right.

[20100510 17:34:25] QUIT

[20100510 17:34:25] 426 Retrieve aborted; Transfer ok

[20100510 17:34:25] 

KeepAliveInterval := 300s is not okay
The connection closed automaticly, when received the NOOP command.
When connection restart, i never receive a NOOP command.
[20100510 18:45:05] SmartFTP FTP Library 2.0.70.0

[20100510 18:45:05] 

[20100510 18:45:05] 

[20100510 18:45:05] 

[20100510 18:45:05] 

[20100510 18:45:05] 

[20100510 18:45:05] 

[20100510 18:45:05] 220-

[20100510 18:45:05]  Hello (not logged in) from 192.168.1.12 !

[20100510 18:45:05]  

[20100510 18:45:05]    Current statistics:

[20100510 18:45:05]            - Version : Gene6 FTP Server v3.10.0 (Build 2)

[20100510 18:45:05]            - OS : Windows NT 5.2 Service Pack 2 with 2 GBytes

[20100510 18:45:05]            - CPU : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz

[20100510 18:45:05]  

[20100510 18:45:05]            - Domain : sweethome.org

[20100510 18:45:05]            - Uptime : 03d01:59:41

[20100510 18:45:05]            - SSL :  Enabled

[20100510 18:45:05]            - Connected user(s) : 1/Unlimited

[20100510 18:45:05]  

[20100510 18:45:05]            - Files served : 1182

[20100510 18:45:05]            - Served : 17.343 GBytes

[20100510 18:45:05]            - Received : 850.848 KBytes

[20100510 18:45:05]  

[20100510 18:45:05]            - Current Speed : 0 Bytes/s

[20100510 18:45:05]            - Average Speed : 68.271 KBytes/s

[20100510 18:45:05]  

[20100510 18:45:05] 220 ready...

[20100510 18:45:05] USER testuser

[20100510 18:45:05] 331 Password required for testuser.

[20100510 18:45:05] PASS 

[20100510 18:45:05] 230 User testuser logged in.

[20100510 18:45:05] SYST

[20100510 18:45:05] 215 UNIX Type: L8

[20100510 18:45:05] 

[20100510 18:45:05] RTT: 32.235 ms

[20100510 18:45:05] FEAT

[20100510 18:45:05] 211-Extensions supported:

[20100510 18:45:05]  AUTH TLS

[20100510 18:45:05]  CCC

[20100510 18:45:05]  CLNT

[20100510 18:45:05]  CPSV

[20100510 18:45:05]  EPRT

[20100510 18:45:05]  EPSV

[20100510 18:45:05]  MDTM

[20100510 18:45:05]  MFCT

[20100510 18:45:05]  MFMT

[20100510 18:45:05]  MLST type*;size*;create;modify*;

[20100510 18:45:05]  MODE Z

[20100510 18:45:05]  PASV

[20100510 18:45:05]  PBSZ

[20100510 18:45:05]  PROT

[20100510 18:45:05]  REST STREAM

[20100510 18:45:05]  SIZE

[20100510 18:45:05]  SSCN

[20100510 18:45:05]  TVFS

[20100510 18:45:05]  UTF8

[20100510 18:45:05]  XCRC "filename" SP EP

[20100510 18:45:05]  XMD5 "filename" SP EP

[20100510 18:45:05]  XSHA1 "filename" SP EP

[20100510 18:45:05] 211 End.

[20100510 18:45:05] CLNT TurboFTP 1.0.10.8

[20100510 18:45:05] 200 Noted.

[20100510 18:45:05] OPTS UTF8 ON

[20100510 18:45:05] 200 UTF8 OPTS ON

[20100510 18:45:05] OPTS MLST type;size;create;modify;

[20100510 18:45:05] 200 MLST OPTS type;size;create;modify;

[20100510 18:45:05] 

[20100510 18:45:05] PWD

[20100510 18:45:05] 257 "/" is current directory.

[20100510 18:45:05] TYPE I

[20100510 18:45:05] 200 Type set to I.

[20100510 18:45:05] SIZE /public/Testfile.rar

[20100510 18:45:05] 213 21232065520

[20100510 18:45:05] PBSZ 0

[20100510 18:45:05] 200 PBSZ=0

[20100510 18:45:05] PROT C

[20100510 18:45:05] 200 PROT command successful.

[20100510 18:45:05] PASV

[20100510 18:45:05] 227 Entering Passive Mode (127,0,0,1,200,95)

[20100510 18:45:05] 

[20100510 18:45:05] 

[20100510 18:45:05] 

[20100510 18:45:05] RETR /public/Testfile.rar

[20100510 18:45:05] 150 Data connection accepted from 192.168.1.12:58368; transfer starting for /public/Testfile.rar (21232065520 bytes)

[20100510 18:51:06] NOOP                                                 <<<<----- NOOP Command received but...

[20100510 18:51:06] 

[20100510 18:51:06] An established connection was aborted by the software in your host machine.   <<<<----- the Connection is automatically closed.

[20100510 18:51:13] SmartFTP FTP Library 2.0.70.0

[20100510 18:51:13] 

[20100510 18:51:13] 

[20100510 18:51:13] 

[20100510 18:51:14] 

[20100510 18:51:14] 

[20100510 18:51:14] 

[20100510 18:51:14] 220-

[20100510 18:51:14]  Hello (not logged in) from 192.168.1.12 !

[20100510 18:51:14]  

[20100510 18:51:14]    Current statistics:

[20100510 18:51:14]            - Version : Gene6 FTP Server v3.10.0 (Build 2)

[20100510 18:51:14]            - OS : Windows NT 5.2 Service Pack 2 with 2 GBytes

[20100510 18:51:14]            - CPU : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz

[20100510 18:51:14]  

[20100510 18:51:14]            - Domain : sweethome.org

[20100510 18:51:14]            - Uptime : 03d02:05:50

[20100510 18:51:14]            - SSL :  Enabled

[20100510 18:51:14]            - Connected user(s) : 1/Unlimited

[20100510 18:51:14]  

[20100510 18:51:14]            - Files served : 1182

[20100510 18:51:14]            - Served : 17.407 GBytes

[20100510 18:51:14]            - Received : 851.514 KBytes

[20100510 18:51:14]  

[20100510 18:51:14]            - Current Speed : 241 Bytes/s

[20100510 18:51:14]            - Average Speed : 68.43 KBytes/s

[20100510 18:51:14]  

[20100510 18:51:14] 220 ready...

[20100510 18:51:14] USER testuser

[20100510 18:51:14] 331 Password required for testuser.

[20100510 18:51:14] PASS 

[20100510 18:51:15] 230 User testuser logged in.

[20100510 18:51:15] SYST

[20100510 18:51:15] 215 UNIX Type: L8

[20100510 18:51:15] 

[20100510 18:51:15] RTT: 307.777 ms

[20100510 18:51:15] FEAT

[20100510 18:51:15] 211-Extensions supported:

[20100510 18:51:15]  AUTH TLS

[20100510 18:51:15]  CCC

[20100510 18:51:15]  CLNT

[20100510 18:51:15]  CPSV

[20100510 18:51:15]  EPRT

[20100510 18:51:15]  EPSV

[20100510 18:51:15]  MDTM

[20100510 18:51:15]  MFCT

[20100510 18:51:15]  MFMT

[20100510 18:51:15]  MLST type*;size*;create;modify*;

[20100510 18:51:15]  MODE Z

[20100510 18:51:15]  PASV

[20100510 18:51:15]  PBSZ

[20100510 18:51:15]  PROT

[20100510 18:51:15]  REST STREAM

[20100510 18:51:15]  SIZE

[20100510 18:51:15]  SSCN

[20100510 18:51:15]  TVFS

[20100510 18:51:15]  UTF8

[20100510 18:51:15]  XCRC "filename" SP EP

[20100510 18:51:15]  XMD5 "filename" SP EP

[20100510 18:51:15]  XSHA1 "filename" SP EP

[20100510 18:51:15] 211 End.

[20100510 18:51:15] CLNT TurboFTP 1.0.10.8

[20100510 18:51:16] 200 Noted.

[20100510 18:51:16] OPTS UTF8 ON

[20100510 18:51:16] 200 UTF8 OPTS ON

[20100510 18:51:16] OPTS MLST type;size;create;modify;

[20100510 18:51:16] 200 MLST OPTS type;size;create;modify;

[20100510 18:51:16] 

[20100510 18:51:16] PWD

[20100510 18:51:17] 257 "/" is current directory.

[20100510 18:51:17] TYPE I

[20100510 18:51:17] 200 Type set to I.

[20100510 18:51:17] SIZE /public/Testfile.rar

[20100510 18:51:18] 213 21232065520

[20100510 18:51:18] PBSZ 0

[20100510 18:51:18] 200 PBSZ=0

[20100510 18:51:18] PROT C

[20100510 18:51:18] 200 PROT command successful.

[20100510 18:51:18] PASV

[20100510 18:51:19] 227 Entering Passive Mode (127,0,0,1,209,252)

[20100510 18:51:19] 

[20100510 18:51:19] 

[20100510 18:51:19] 

[20100510 18:51:19] RETR /public/Testfile.rar

[20100510 18:51:20] 150 Data connection accepted from 192.168.1.12:58443; transfer starting for /public/Testfile.rar (21232065520 bytes)

[20100510 19:03:30] ABOR                                                 <<<<----- At this point I have aborted it. NOOP no longer received.

[20100510 19:03:30] QUIT

[20100510 19:03:30] An established connection was aborted by the software in your host machine.

[20100510 19:03:30] 
Regards,
Gregory

The control connection is closed (by the server or a firewall etc) before the NOOP command is sent. I do not quite understand why you enable the undocumented KeepAlive feature? It is only necessary in very special cases.