From 5ab523ec3f215e8222a8868eb1363e562f833404 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 11 Jul 2016 07:48:53 +0800 Subject: [PATCH] ah change default header len to 4096 and pool size 4 Users are starting to appear with clients sending more than the default max header content buffer of 1024... with the advent of the ah pool the old reasons for keeping this modest no longer apply, so up it to 4096 and reduce the default pool size to 4 from 16 to keep the overall memory usage the same. --- lib/private-libwebsockets.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 0e1cf8b8..03ef1c18 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -320,10 +320,10 @@ extern "C" { #endif #ifndef LWS_DEF_HEADER_LEN -#define LWS_DEF_HEADER_LEN 1024 +#define LWS_DEF_HEADER_LEN 4096 #endif #ifndef LWS_DEF_HEADER_POOL -#define LWS_DEF_HEADER_POOL 16 +#define LWS_DEF_HEADER_POOL 4 #endif #ifndef LWS_MAX_PROTOCOLS #define LWS_MAX_PROTOCOLS 5