From 13bd2c28007f99a2524aed549c270733ebf400af Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 4 Dec 2018 00:26:13 +0100 Subject: [PATCH] web: fix underrun of http header pool --- lib/web.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/web.cpp b/lib/web.cpp index 2f0114cbf..1c0cff314 100644 --- a/lib/web.cpp +++ b/lib/web.cpp @@ -238,7 +238,11 @@ void Web::start() .uid = -1, .options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS | LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT, .user = (void *) this, - .mounts = mounts, +#if LWS_LIBRARY_VERSION_NUMBER <= 3000000 + // https://github.com/warmcat/libwebsockets/issues/1249 + .max_http_header_pool = 1024, + #endif + .mounts = mounts }; logger->info("Starting sub-system: htdocs={}", htdocs.c_str());