I think you are correct. I see the same behavior with the code from trunk (a
few days old may be).

Sai Pullabhotla
www.jMethods.com



On Wed, May 20, 2009 at 7:51 AM, Johannes Katelaan <[email protected]>wrote:

> I use the command line ftp client on Mac OS X to login.
> After login the last two log messages I get from the server are:
>
> 2009-05-20 14:44:11,721  WARN [pool-2-thread-5] at
> org.apache.mina.filter.logging.LoggingFilter.log(LoggingFilter.java:145) -
> SENT: 211-Extensions supported
>  SIZE
>  MDTM
>  REST STREAM
>  LANG en;zh-tw;ja;is
>  MLST Size;Modify;Type;Perm
>  AUTH SSL
>  AUTH TLS
>  MODE Z
>  UTF8
>  TVFS
>  MD5
>  MMD5
>  MFMT
> 211 End
> 2009-05-20 14:44:11,723  WARN [pool-2-thread-5] at
> org.apache.mina.filter.logging.LoggingFilter.log(LoggingFilter.java:145) -
> SENT: 257 "/" is current directory.
>
> I stay idle for a while and then change directory to "tmp". I get the
> following log messages from the server:
>
> 2009-05-20 14:48:24,365  INFO [pool-2-thread-6] at
> org.apache.ftpserver.listener.nio.FtpLoggingFilter.messageReceived(FtpLoggingFilter.java:89)
> - RECEIVED: CWD TMP
> 2009-05-20 14:48:24,367  WARN [pool-2-thread-6] at
> org.apache.mina.filter.logging.LoggingFilter.log(LoggingFilter.java:145) -
> SENT: 250 Directory changed to /tmp
>
> So obviously there's no reconnect by the client. And there is no timeout.
> The server just handles the cd command. The connection remains established.
>
> Johannes
>
> Am 20.05.2009 um 14:29 schrieb Sai Pullabhotla:
>
>
>  That appears to be the correct way. What exactly you mean by "has no
>> effect"? What happens if you connect to the server with an FTP Client,
>> stay
>> idle for about 10 seconds, and try to do some thing such as transferring a
>> file or changing the working directory? Also, some FTP clients like
>> FileZilla re-establish a connection when they detect a connection failure.
>> Please make sure that it is not the case with you.
>>
>> Sai Pullabhotla
>> www.jMethods.com
>>
>>
>>
>> On Wed, May 20, 2009 at 6:59 AM, Johannes Katelaan <[email protected]
>> >wrote:
>>
>>  Hi,
>>>
>>> I embedded Apache FtpServer 1.0.1 into my application. The intended
>>> functionality is implemented completely and it's working fine.
>>>
>>> Now I tried to set an idle timeout of 10 seconds as follows:
>>>
>>>      ListenerFactory lf = new ListenerFactory();
>>>      lf.setIdleTimeout(10);
>>>
>>> This seems to have no effect at all. Also the default idle timeout seems
>>> to
>>> be "infinite".
>>>
>>> Please help! Is this the correct way to set the idle timeout?
>>>
>>> Regards
>>>
>>> Johannes
>>>
>>>
>>>
>>>
>

Reply via email to