setting a new ReadTimeoutHandler for every single write?

stabilit joel.traber at stabilit.ch
Thu Aug 19 04:40:27 EDT 2010


Hi guys

I am trying to implement an operation timeout for sending messages. So far i
use Netty ReadTimeoutHandler to time the operation. If the reply is
outstanding at the time a ReadTimeoutException gets raised i close the
connection and clean up. 
Now operation timeout varies for message content. 

May i set a new ReadTimeoutHandler for every write or is it very
inefficient/not designed for that and i better use a separate Timer? I may
have 500 requests over 500 Channels at the same time so solution should deal
with resources.

Did anyone implement similar functionality yet? Or have any suggestion how
to implement an operation timeout efficiently?

Thanks in advance, joël


-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/setting-a-new-ReadTimeoutHandler-for-every-single-write-tp5439391p5439391.html
Sent from the Netty User Group mailing list archive at Nabble.com.



More information about the netty-users mailing list