From 6ff5dfa02dc7f1f74750304713900b9a2a16f944 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 19 Jan 2011 13:19:47 -0600 Subject: [PATCH] Strip "ws" from test names. Update TODO. Also, rename wstest to load. --- docs/TODO | 6 ++++++ tests/{wsecho.html => echo.html} | 0 tests/{wsecho.py => echo.py} | 0 tests/{wsencoding.html => encoding.html} | 0 tests/{wsencoding.py => encoding.py} | 0 tests/{wstest.html => load.html} | 0 tests/{wstest.py => load.py} | 0 websocket.py | 2 +- 8 files changed, 7 insertions(+), 1 deletion(-) rename tests/{wsecho.html => echo.html} (100%) rename tests/{wsecho.py => echo.py} (100%) rename tests/{wsencoding.html => encoding.html} (100%) rename tests/{wsencoding.py => encoding.py} (100%) rename tests/{wstest.html => load.html} (100%) rename tests/{wstest.py => load.py} (100%) diff --git a/docs/TODO b/docs/TODO index 1166e5e..2736bea 100644 --- a/docs/TODO +++ b/docs/TODO @@ -1 +1,7 @@ - wstelnet: support CSI L and CSI M + +- mod_websockify module for Apache + +- create gevent version: + http://nichol.as/benchmark-of-python-web-servers + http://n01se.net/paste/QXO diff --git a/tests/wsecho.html b/tests/echo.html similarity index 100% rename from tests/wsecho.html rename to tests/echo.html diff --git a/tests/wsecho.py b/tests/echo.py similarity index 100% rename from tests/wsecho.py rename to tests/echo.py diff --git a/tests/wsencoding.html b/tests/encoding.html similarity index 100% rename from tests/wsencoding.html rename to tests/encoding.html diff --git a/tests/wsencoding.py b/tests/encoding.py similarity index 100% rename from tests/wsencoding.py rename to tests/encoding.py diff --git a/tests/wstest.html b/tests/load.html similarity index 100% rename from tests/wstest.html rename to tests/load.html diff --git a/tests/wstest.py b/tests/load.py similarity index 100% rename from tests/wstest.py rename to tests/load.py diff --git a/websocket.py b/websocket.py index e8db441..1ed21d2 100755 --- a/websocket.py +++ b/websocket.py @@ -260,7 +260,6 @@ Connection: Upgrade\r # Now get the data from the socket handshake = retsock.recv(4096) - #self.msg("handshake: " + repr(handshake)) if len(handshake) == 0: raise self.EClose("Client closed during handshake") @@ -278,6 +277,7 @@ Connection: Upgrade\r else: raise self.EClose("") + #self.msg("handshake: " + repr(handshake)) # Parse client WebSockets handshake h = self.parse_handshake(handshake)