You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/10/09 13:58:29 UTC

svn commit: r1630376 - /tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java

Author: markt
Date: Thu Oct  9 11:58:29 2014
New Revision: 1630376

URL: http://svn.apache.org/r1630376
Log:
Enable more of the Autobahn tests by advertising support for client_max_window_bits

Modified:
    tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java

Modified: tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java?rev=1630376&r1=1630375&r2=1630376&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java Thu Oct  9 11:58:29 2014
@@ -89,9 +89,13 @@ public class TesterWsClientAutobahn {
                 testCase + "&agent=" + USER_AGENT);
         TestCaseClient testCaseClient = new TestCaseClient();
 
-        // TODO: Need to add ability to specify extensions when using
-        //       annotations
         Extension permessageDeflate = new WsExtension("permessage-deflate");
+        // Advertise support for client_max_window_bits
+        // Client only supports some values so there will be some failures here
+        // Note Autobahn returns a 400 response if you provide a value for
+        // client_max_window_bits
+        permessageDeflate.getParameters().add(
+                new WsExtensionParameter("client_max_window_bits", null));
         List<Extension> extensions = new ArrayList<>(1);
         extensions.add(permessageDeflate);
 
@@ -99,7 +103,6 @@ public class TesterWsClientAutobahn {
         ClientEndpointConfig.Builder builder = ClientEndpointConfig.Builder.create();
         ClientEndpointConfig config = builder.extensions(extensions).build();
 
-
         wsc.connectToServer(ep, config, uri);
         testCaseClient.waitForClose();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org