mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix deflate window
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>
This commit is contained in:
parent
043a0ba854
commit
66a36ff577
2 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue