If Write_Idle doesn't throws an exception, what does it do?
On 7/28/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 7/28/07, Mike Heath <[EMAIL PROTECTED]> wrote: > > setWriteTimeout sets the TCP option for write timeout. So in your > > example, if you don't receive a SYN packet from the remote host within > > 10 seconds from sending a packet, the OS will timeout the TCP > > connection. > > To tell the truth, it's MINA which detects the write timeout. > IoSession.writeTimeout property doesn't have any relationship with > TCP-level packet timeout. MINA throws WriteTimeoutException if a > certain buffer is not fully written within the configured amount of > time (writeTimeout). > > writeTimeout and WRITER_IDLE are very similar to each other, but they > are different in that writeTimeout throws an exception while > WRITER_IDLE doesn't. They are usually used for different purposes. > > HTH, > Trustin > -- > what we call human nature is actually human habit > -- > http://gleamynode.net/ > -- > PGP Key ID: 0x0255ECA6 >
