From 87bac69f55d3193800a93b54835e567f17ae9e2d Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 26 Dec 2015 09:08:06 +0800 Subject: [PATCH] remove MAX_MUX_RECURSION from PRE padding The old google mux thing is long dead This only affects app buffer sizing, if old apps overcommit, no worries. Signed-off-by: Andy Green --- lib/libwebsockets.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 861fc2bc..1c6a3320 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -191,7 +191,6 @@ extern "C" { #endif #define CONTEXT_PORT_NO_LISTEN -1 -#define MAX_MUX_RECURSION 2 enum lws_log_levels { LLL_ERR = 1 << 0, @@ -1446,7 +1445,7 @@ lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs); #endif #define _LWS_PAD(n) (((n) % _LWS_PAD_SIZE) ? \ ((n) + (_LWS_PAD_SIZE - ((n) % _LWS_PAD_SIZE))) : (n)) -#define LWS_SEND_BUFFER_PRE_PADDING _LWS_PAD(4 + 10 + (2 * MAX_MUX_RECURSION)) +#define LWS_SEND_BUFFER_PRE_PADDING _LWS_PAD(4 + 10) #define LWS_SEND_BUFFER_POST_PADDING 4 LWS_VISIBLE LWS_EXTERN int