From b56c17769cb4f122e99df33363d85696228a2655 Mon Sep 17 00:00:00 2001 From: vibul Date: Sun, 11 Mar 2012 11:35:33 +1100 Subject: [PATCH] Retested Websockets with Autobahn v0.4.10. --- .../http/websocketx/autobahn/package-info.java | 18 ++++++++++-------- .../websocketx/server/WebSocketServer.java | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/example/src/main/java/io/netty/example/http/websocketx/autobahn/package-info.java b/example/src/main/java/io/netty/example/http/websocketx/autobahn/package-info.java index 892442c725..971d1f0640 100644 --- a/example/src/main/java/io/netty/example/http/websocketx/autobahn/package-info.java +++ b/example/src/main/java/io/netty/example/http/websocketx/autobahn/package-info.java @@ -26,13 +26,14 @@ * *

03. Intall Python Setup Tools: sudo apt-get install python-setuptools * - *

04. Install AutoBahn: sudo easy_install Autobahn + *

04. Install AutoBahn: sudo easy_install Autobahn. If you already have Autobahn installed, you may need + * to upgrade it: sudo easy_install --upgrade Autobahn. Make suer v0.4.10 is installed. * - *

05. Get AutoBahn testsuite source code: git clone git@github.com:oberstet/Autobahn.git + *

05. Get AutoBahn testsuite source code: git clone git@github.com:tavendo/AutobahnPython.git * - *

06. Go to AutoBahn directory: cd Autobahn + *

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

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

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

08. Go to test suite directory: cd testsuite/websockets * @@ -47,11 +48,12 @@ * } * * - *

10. Run AutobahnServer in this package + *

10. Run our AutobahnServer located in this package. If you are in Eclipse IDE, right click on + * AutobahnServer.java and select Run As > Java Application. * - *

11. 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.3-py2.6.egg/autobahn/cases - * and not in the checked out git repository. + *

11. Run the Autobahn test python fuzzing_client.py. Note that the actual test case python code is + * located with the easy_install package (e.g. in /usr/local/lib/python2.7/dist-packages/ + * autobahn-0.4.10-py2.7.egg/autobahn/cases) and not in the checked out git repository. * *

12. See the results in reports/servers/index.html */ diff --git a/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java b/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java index d0918c4ec1..2225455a10 100644 --- a/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java +++ b/example/src/main/java/io/netty/example/http/websocketx/server/WebSocketServer.java @@ -37,6 +37,7 @@ import io.netty.channel.socket.nio.NioServerSocketChannelFactory; *

  • Chrome 14+ (draft-ietf-hybi-thewebsocketprotocol-10) *
  • Chrome 16+ (RFC 6455 aka draft-ietf-hybi-thewebsocketprotocol-17) *
  • Firefox 7+ (draft-ietf-hybi-thewebsocketprotocol-10) + *
  • Firefox 11+ (RFC 6455 aka draft-ietf-hybi-thewebsocketprotocol-17) * */ public class WebSocketServer {