From: remm Date: Fri, 29 Sep 2006 09:57:41 +0000 (+0000) Subject: - The keep alive value is actually in the endpoint. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=caf3e46799e40e48d8e909d7b2107729a5b7a3d4;p=tomcat7.0 - The keep alive value is actually in the endpoint. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@451207 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11AprProtocol.java b/java/org/apache/coyote/http11/Http11AprProtocol.java index c8706c50a..960b7a5c9 100644 --- a/java/org/apache/coyote/http11/Http11AprProtocol.java +++ b/java/org/apache/coyote/http11/Http11AprProtocol.java @@ -202,7 +202,6 @@ public class Http11AprProtocol implements ProtocolHandler, MBeanRegistration private int socketBuffer = 9000; private Adapter adapter; private Http11ConnectionHandler cHandler; - private int keepAliveTimeout = 15000; // 15 seconds as in Apache HTTPD server /** * Compression value. @@ -469,8 +468,13 @@ public class Http11AprProtocol implements ProtocolHandler, MBeanRegistration * before closing the connection. The default is the same as for * Apache HTTP Server (15 000 milliseconds). */ - public int getKeepAliveTimeout() { return keepAliveTimeout; } - public void setKeepAliveTimeout(int timeout) { keepAliveTimeout = timeout; } + public int getKeepAliveTimeout() { + return ep.getKeepAliveTimeout(); + } + + public void setKeepAliveTimeout(int timeout) { + ep.setKeepAliveTimeout(timeout); + } /** * Return the Keep-Alive policy for the connection. diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java b/java/org/apache/tomcat/util/net/AprEndpoint.java index a9f7f5ca9..08dca2dee 100644 --- a/java/org/apache/tomcat/util/net/AprEndpoint.java +++ b/java/org/apache/tomcat/util/net/AprEndpoint.java @@ -255,6 +255,7 @@ public class AprEndpoint { public int getSoTimeout() { return soTimeout; } public void setSoTimeout(int soTimeout) { this.soTimeout = soTimeout; } + /** * Keep-Alive timeout. */