Fix Servlet TCK failures with using the RemoteIpValve
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 8 May 2011 22:11:19 +0000 (22:11 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 8 May 2011 22:11:19 +0000 (22:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1100825 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/valves/RemoteIpValve.java
webapps/docs/changelog.xml

index bb4b4e7..7b8a825 100644 (file)
@@ -442,6 +442,17 @@ public class RemoteIpValve extends ValveBase {
      */
     private Pattern trustedProxies = null;
     
+
+    /**
+     * Default constructor that ensures {@link ValveBase#ValveBase(boolean)} is
+     * called with <code>true</code>.
+     */
+    public RemoteIpValve() {
+        // Async requests are supported with this valve
+        super(true);
+    }
+
+    
     public int getHttpsServerPort() {
         return httpsServerPort;
     }
index 2835db1..0465569 100644 (file)
         Ensure that the SSLValve provides the SSL key size as an Integer rather
         than a String. (markt)
       </fix>
+      <fix>
+        Ensure that the RemoteIpValve works correctly with Servlet 3.0
+        asynchronous requests. (markt)
+      </fix>
     </changelog>
   </subsection>
 </section>