Thank you. But it looks like in 5.5 the parameter is only in the protocol:
apache-tomcat-5.5.20-src/connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java:
public void setKeepAlive(boolean keepAlive) {
apache-tomcat-5.5.20-src/connectors/http11/src/java/org/apache/coyote/http11/Http11BaseProtocol.java:
public void setKeepAlive(boolean keepAlive) {
apache-tomcat-5.5.20-src/connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Connector.java:
* socket.setKeepAlive(true);
How to specify this parameter? Should I use connectionKeepAlive to use
it similar to linger?
- Alexey.
Martin Gainty wrote:
> good info--
> Also take a look at
> http://eip.gp.gov.tw/tomcat-docs/catalina/docs/api/org/apache/coyote/tomcat5/CoyoteConnector.html#setConnectionLinger(int)
>
> also setKeepAlive() method for CoyoteConnector
>
> M--
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed. If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy. Thank you.
>
> ----- Original Message ----- From: "Alexey N. Solofnenko"
> <A.Solofnenko@mdl.com>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Monday, April 30, 2007 2:37 PM
> Subject: How to set keep alive on the TCP socket?
>
>
>> We (and some of our customers) have firewalls that disconnect
>> "inactive" connections, so all requests that take more than some time
>> to complete get silently disconnected and never return. I think
>> soKeepAlive is supposed to fix that problem, but I do not see how to
>> configure it. The only references I could find are for cluster
>> configuration.
>>
>> - Alexey.
>> --
>> ------------------------------------------------------------------------
>> Alexey N. Solofnenko <http://trelony.cjb.net/>
>> Pleasant Hill, CA (GMT-8 usually)
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
--
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)
|