Refactor keepAliveTimeout to abstract AJP processor
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 14 May 2011 21:28:44 +0000 (21:28 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 14 May 2011 21:28:44 +0000 (21:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1103229 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/ajp/AbstractAjpProcessor.java
java/org/apache/coyote/ajp/AjpProcessor.java

index 7e5b86e..5a40a1c 100644 (file)
@@ -188,6 +188,16 @@ public abstract class AbstractAjpProcessor implements ActionHook, Processor {
 
 
     /**
+     * The number of milliseconds Tomcat will wait for a subsequent request
+     * before closing the connection. The default is the same as for
+     * Apache HTTP Server (15 000 milliseconds).
+     */
+    protected int keepAliveTimeout = -1;
+    public int getKeepAliveTimeout() { return keepAliveTimeout; }
+    public void setKeepAliveTimeout(int timeout) { keepAliveTimeout = timeout; }
+
+
+    /**
      * Use Tomcat authentication ?
      */
     protected boolean tomcatAuthentication = true;
index 10355d6..207fe69 100644 (file)
@@ -189,16 +189,6 @@ public class AjpProcessor extends AbstractAjpProcessor {
     // ------------------------------------------------------------- Properties
 
 
-    /**
-     * The number of milliseconds Tomcat will wait for a subsequent request
-     * before closing the connection. The default is the same as for
-     * Apache HTTP Server (15 000 milliseconds).
-     */
-    protected int keepAliveTimeout = -1;
-    public int getKeepAliveTimeout() { return keepAliveTimeout; }
-    public void setKeepAliveTimeout(int timeout) { keepAliveTimeout = timeout; }
-
-
     // --------------------------------------------------------- Public Methods