I have a an ftplet that needs to disconnect after 10  minutes of no
activity. I am calling the following method in my onConnect() method:


  public FtpletEnum onLogin(FtpSession session, FtpRequest request,
FtpReplyOutput response)
                    throws FtpException, IOException
    {
        //set the max idle timeout
        session.setMaxIdleTime(10);    
        return null;
    }


However this does not seems working. Any idea where I am doing wrong?


Thanks
Ajith

Reply via email to