I want to reset the reader_idle "timer" so the "countdown" begins when I sent data, not when I read the previous data. For ex: Request (write) [writer_idle timer begins] .... Response (read) [reader_idle timer begins] I would like a timer between the write and the response.
Thanks! Fred Trustin Lee wrote: > > I actually didn't understand what problem you are trying to fix. More > hints are appreciated. > > Trustin > > On Nov 13, 2007 3:26 AM, FredAtMina <[EMAIL PROTECTED]> wrote: >> >> >> No idea anyone ? >> >> Regards, >> >> Fred >> >> >> >> FredAtMina wrote: >> > >> > Hi all, >> > >> > I'm using mina in order to send / receive 1 byte at a time. I would >> like >> > to use the IDLE timer so I can have this behavior: >> > reset the READER_IDLE timer just after sending data, so the >> > ioHandler.sessionIdle is called whenever the server takes longer then >> the >> > READER_IDLE to reply to the client. >> > So, for example, if the TIMOUT is set to 1 second, I want >> > ioHandler.sessionIdle to be called when there is more than 1 second of >> > delay between the send and the receive, not between the last two >> > receive... >> > >> > As I don't see any "reset" in the IoSession API, I'm thinking about: >> > - using BOTH_IDLE, but I'm not sure it is doing what I want (i.e. is >> the >> > time reset whenever there is a write or a read) ? >> > (having BOTH_IDLE and READ_IDLE should meet my requirement if this >> works >> > as I hope) >> > - using the getLastReadTime and getLastWriteTime to approximate this >> > behavior, >> > but before that, I want to be sure there is no way to reset the timer. >> > >> > Regards, >> > >> > Fred >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Is-it-possible-to-%22reset%22-the-READER_IDLE-%22timer%22-tf4778577s16868.html#a13711231 >> >> Sent from the Apache MINA Support Forum mailing list archive at >> Nabble.com. >> >> > > > > -- > what we call human nature is actually human habit > -- > http://gleamynode.net/ > -- > PGP Key ID: 0x0255ECA6 > > -- View this message in context: http://www.nabble.com/Is-it-possible-to-%22reset%22-the-READER_IDLE-%22timer%22-tf4778577s16868.html#a13725070 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.
