- The keep alive value is actually in the endpoint.
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 29 Sep 2006 09:57:41 +0000 (09:57 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 29 Sep 2006 09:57:41 +0000 (09:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@451207 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11AprProtocol.java
java/org/apache/tomcat/util/net/AprEndpoint.java

index c8706c5..960b7a5 100644 (file)
@@ -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.
index a9f7f5c..08dca2d 100644 (file)
@@ -255,6 +255,7 @@ public class AprEndpoint {
     public int getSoTimeout() { return soTimeout; }
     public void setSoTimeout(int soTimeout) { this.soTimeout = soTimeout; }
 
+
     /**
      * Keep-Alive timeout.
      */