From 8efe131eb0881e8c39eca1e537006224be1ef6da Mon Sep 17 00:00:00 2001 From: Veebs Date: Mon, 28 Nov 2011 22:27:58 +1100 Subject: [PATCH] Fix closing handshake and run against Autobahn V0.4.3 --- .../websocketx/autobahn/package-info.java | 13 ++++++++----- .../websocketx/WebSocket08FrameDecoder.java | 19 +++++++++++-------- .../WebSocketServerHandshaker10.java | 7 +++++-- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java b/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java index 46de920b06..3d010b0da2 100644 --- a/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java +++ b/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java @@ -32,20 +32,23 @@ * *

06. Go to AutoBahn directory: cd Autobahn * - *

07. Checkout stable version: git checkout v0.4.2 + *

07. Checkout stable version: git checkout v0.4.3 * *

08. Go to test suite directory: cd testsuite/websockets * - *

09. Edit fuzzing_clinet_spec.json and set the version to 10. + *

09. Edit fuzzing_clinet_spec.json and set the version to 10 or 17. * * { - * "servers": [{"agent": "Netty", "hostname": "localhost", "port": 9000, "version": 10}], - * "cases": ["*"] + * "options": {"failByDrop": false}, + * "servers": [{"agent": "Netty", "url": "ws://localhost:9000", "options": {"version": 17}}], + * "cases": ["*"], + * "exclude-cases": [], + * "exclude-agent-cases": {"FoobarServer*": ["4.*", "1.1.3"]} * } * * *

10. Run the test python fuzzing_client.py. Note that the actual test case python code is - * located in /usr/local/lib/python2.6/dist-packages/autobahn-0.4.2-py2.6.egg/autobahn/cases + * located in /usr/local/lib/python2.6/dist-packages/autobahn-0.4.3-py2.6.egg/autobahn/cases * and not in the checked out git repository. * *

11. See the results in reports/servers/index.html diff --git a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocket08FrameDecoder.java b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocket08FrameDecoder.java index 146768db62..9ac57aa992 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocket08FrameDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocket08FrameDecoder.java @@ -260,7 +260,17 @@ public class WebSocket08FrameDecoder extends ReplayingDecoder