fix deflate window
authorAndy Green <andy@warmcat.com>
Fri, 29 Apr 2011 09:43:06 +0000 (17:43 +0800)
committerAndy Green <andy@warmcat.com>
Fri, 29 Apr 2011 09:43:06 +0000 (17:43 +0800)
Mozilla implementationcan issue window of up to 15,
need to match it

Reported-by: Patrick McManus <pmcmanus@mozilla.com>
Signed-off-by: Andy Green <andy@warmcat.com>
lib/extension-deflate-stream.c
lib/private-libwebsockets.h

index deb793b..3505e95 100644 (file)
@@ -4,7 +4,7 @@
 #include <string.h>
 #include <assert.h>
 
-#define LWS_ZLIB_WINDOW_BITS 8
+#define LWS_ZLIB_WINDOW_BITS 15
 #define LWS_ZLIB_MEMLEVEL 8
 
 int lws_extension_callback_deflate_stream(
index f0f55a8..6aef84a 100644 (file)
@@ -258,6 +258,7 @@ struct libwebsocket {
        char rx_user_buffer[LWS_SEND_BUFFER_PRE_PADDING + MAX_USER_RX_BUFFER +
                                                  LWS_SEND_BUFFER_POST_PADDING];
        int rx_user_buffer_head;
+       enum libwebsocket_write_protocol rx_frame_type;
        int protocol_index_for_broadcast_proxy;
        enum pending_timeout pending_timeout;
        unsigned long pending_timeout_limit;