change default client version to 06
authorAndy Green <andy@warmcat.com>
Sat, 26 Feb 2011 11:08:46 +0000 (11:08 +0000)
committerAndy Green <andy@warmcat.com>
Sat, 26 Feb 2011 11:08:46 +0000 (11:08 +0000)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/client-handshake.c
lib/private-libwebsockets.h

index e7b33b6..49a31bc 100644 (file)
@@ -55,7 +55,7 @@ libwebsocket_client_connect(struct libwebsocket_context *this,
        /* -1 means just use latest supported */
 
        if (ietf_version_or_minus_one == -1)
-               ietf_version_or_minus_one = 5;
+               ietf_version_or_minus_one = SPEC_LATEST_SUPPORTED;
 
        wsi->ietf_spec_revision = ietf_version_or_minus_one;
        wsi->name_buffer_pos = 0;
index 493fd22..e876870 100644 (file)
@@ -89,6 +89,7 @@ static inline void debug(const char *format, ...)
 #define MAX_USER_RX_BUFFER 4096
 #define MAX_BROADCAST_PAYLOAD 2048
 #define LWS_MAX_PROTOCOLS 10
+#define SPEC_LATEST_SUPPORTED 6
 
 #define MAX_WEBSOCKET_04_KEY_LEN 128
 #define SYSTEM_RANDOM_FILEPATH "/dev/urandom"