setting a new ReadTimeoutHandler for every single write?

"이희승 (Trustin Lee)" trustin at gmail.com
Tue Nov 9 01:38:22 EST 2010


Hi Joel,

I'd use a separate timer because ReadTimeoutHandler is optimized for
constant timeout value.

HTH,
Trustin

stabilit wrote:
> 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
> 
> 

-- 
Trustin Lee - http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 290 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20101109/412982d2/attachment-0001.bin 


More information about the netty-users mailing list