2009/2/3 Mohit Anchlia <[email protected]> > Thanks ..so I made the change to set default-idle-time to 300 secs. > And then logged in as a client, ftp server didn't timeout even after 5 > mts of inactivity >
What did you set the timeout-poll-inverval to? When dit the timeout occur? > > On Tue, Feb 3, 2009 at 3:12 AM, David Latorre <[email protected]> wrote: > > 2009/2/3 Ashish <[email protected]> > > > >> On Tue, Feb 3, 2009 at 2:38 PM, David Latorre <[email protected]> wrote: > >> > Hello Mohit, > >> > My advice is to update to the latest version of FtpServer. A lot of > >> > improvements and bugfixes have been added since your version was > >> released. > >> > From and old config file of mine i see this: > >> > > >> > config.connection-manager.default-idle-time=1000 > >> > config.connection-manager.timeout-poll-inverval=60 > >> > >> David, could you point me to the class where this handling is done. > >> Is it in NioListener.java ? > >> > >> acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE, > >> getIdleTimeout()); > >> > > > > In our current code base, yes (He's using an older version). Although you > > can set an idle-timeout in the user manager too. > > > > > > > >> > >> Have you ever tried to set timeout greater than 60 sec (60000) > >> assuming the settings are in > >> ms? So far the way I have experimented with MINA, couldn't make this > >> work for longer timeout, > >> without a workaround. > >> > > > > From Mina javadoc: Sets idle time for the specified type of idleness in > > seconds. > > I haven't really tested this though - and Im not very familiar with Mina > > itself. I should do some research on this. > > > > > > > >> > >> Let me know your thoughts. > >> > >> thanks > >> ashish > >> > > >
