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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org