Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
websockets -08 bump our version number and the version number in the …
Browse files Browse the repository at this point in the history
…test server r=biesi
  • Loading branch information
mcmanus committed Jun 21, 2011
1 parent 687b5cf commit 2be86b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions netwerk/protocol/websocket/nsWebSocketHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ static PRLogModuleInfo *webSocketLog = nsnull;
// main transmit queue
#define kFinMessage (reinterpret_cast<nsCString *>(0x01))

// An implementation of draft-ietf-hybi-thewebsocketprotocol-07
#define SEC_WEBSOCKET_VERSION "7"
// An implementation of draft-ietf-hybi-thewebsocketprotocol-08
#define SEC_WEBSOCKET_VERSION "8"

/*
* About SSL unsigned certificates
Expand Down
3 changes: 3 additions & 0 deletions testing/mochitest/pywebsocket/README
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ files, the second allows python 2.5 to work)
also includes patch for 663096 to drain input buffers before closing
in order to avoid RST

also updates blindly version 7 to be version 8 until upstream makes
real version 8 available

diff --git a/testing/mochitest/pywebsocket/mod_pywebsocket/dispatch.py b/testing/mochitest/pywebsocket/mod_pywebsocket/dispatch.py
--- a/testing/mochitest/pywebsocket/mod_pywebsocket/dispatch.py
+++ b/testing/mochitest/pywebsocket/mod_pywebsocket/dispatch.py
Expand Down
2 changes: 1 addition & 1 deletion testing/mochitest/pywebsocket/mod_pywebsocket/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


# Constants indicating WebSocket protocol version.
VERSION_HYBI07 = 7
VERSION_HYBI07 = 8
VERSION_HYBI00 = 0
VERSION_HIXIE75 = -1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _get_origin(self):

def _check_version(self):
unused_value = validate_mandatory_header(
self._request, common.SEC_WEBSOCKET_VERSION_HEADER, '7')
self._request, common.SEC_WEBSOCKET_VERSION_HEADER, '8')

def _set_protocol(self):
self._request.ws_protocol = None
Expand Down

0 comments on commit 2be86b6

Please sign in to comment.