[infinispan-dev] Idle timeout default for Hot Rod servers - ISPN-385

galder at redhat.com galder at redhat.com
Wed Apr 21 06:28:24 EDT 2010


Hi,

As a result of https://jira.jboss.org/jira/browse/ISPN-385, I'm adding a new command line parameter to the Hot Rod server that allows users to set an idle timeout. The effect of this timeout is that if a Hot Rod server has not received any commands from a given connection within that timeout, it will close it. The aim of this timeout is to battle against clients that might be sending partial or incomplete operations. Closing this connections allows for such incorrect ops to be discarded.

If you pass 0, the idle timeout is disabled. By default, I have set the timeout to 1 minute but I wonder whether it's too low, or whether 0 would be a better default. The reason I say this is cos partial or incomplete operations is more of an edge case than the norm. Once the clients have been debugged, this should not be the norm, hence why I'm wondering whether 0 would be a better default.

Also, any idle timeout settings would need to take in account client settings, or viceversa. There's no much point on a client pooling connections and setting idle timeout to 2 minutes when the server will close idle connections after 1 minute.

Thoughts?
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the infinispan-dev mailing list