ReadTimeoutHandler behavior validation

"Trustin Lee (이희승)" trustin at gmail.com
Tue Apr 6 05:36:26 EDT 2010


Hi Shay,

If the client does not send anything within 30 seconds since it sent the
previous request, ReadTimeoutHandler will raise an exception so that you
can close the connection.

However, nobody stops the client from sending another request.  It's not
even protocol violation since HTTP allows pipelining.  In such a case,
you will not get an exception within 30 seconds.

HTH,
Trustin

Shay Banon wrote:
> Hi,
> 
>   I am using the ReadTimeoutHandler with netty to close HTTP connection that
> opened a keepAlive connection but never properly closed it. I am setting it
> to 30 seconds. I just wanted to validate something regarding
> the ReadTimeoutHandler. Is it true that if I have a request that takes more
> than 30 seconds to process on the server before sending back a response, it
> will close the connection?
> 
> Cheers,
> -shay.banon
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/


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


More information about the netty-users mailing list