When can a ReadTimeout occur?
"Trustin Lee (이희승)"
trustin at gmail.com
Tue Jun 1 03:07:06 EDT 2010
Hi,
infectedrhytms wrote:
> Ok it seems that I have fixed my timeout resources issues.
>
> 1- I using the Netty default ReadtimeoutHandler
> 2- Made sure the ReadTimeoutHandler is placed before potential blocking
> handler, otherwise ReadtimeoutHandler will never get a "MessageRceived"
Glad that you've finally nailed the problem down.
> So the question is when does ReadTimeout happen?
ReadTimeoutException is raised by ReadTimeoutHandler when there's no
inbound traffic for the specified amount of time.
> Currently I have setup Jmeter to stress my application and once in a while I
> get a ReadTimeout error, also from those few I get a ClosedChannelException.
>
> a) Is Readtimeout happening because the stress test? JMeter is sending over
> and over the same message.
Perhaps, unless there is a bug in ReadTimeoutHandler.
> b) How is the ClosedChannelException hapening? The exception happens before
> I write to the socket or does it?
ClosedChannelException is usually raised if you attempts to write
something after the connection is closed. If you closed the connection
before all pending write requests are flushed, you will also get the
exception because Netty will attempt a write operation after the closure.
Thank you very much and a lot of apologies for your patience with my
late response!
Trustin
--
what we call human nature in actuality is human habit
http://gleamynode.net/
More information about the netty-users
mailing list