[ws] Set header data space to 4096

Hopefully fixes the "LWS Ran out of header data space" error seen in the
Chrome browser.
This commit is contained in:
chme 2020-07-03 09:53:39 +02:00
parent a2ec7ee28f
commit 56564dec87

View File

@ -393,6 +393,9 @@ websocket_init(void)
info.gid = -1;
info.uid = -1;
// Set header space to avoid "LWS Ran out of header data space" error
info.max_http_header_data = 4096;
// Log levels below NOTICE are only emmited if libwebsockets was built with DEBUG defined
lws_set_log_level(LLL_ERR | LLL_WARN | LLL_NOTICE | LLL_INFO | LLL_DEBUG,
logger_libwebsockets);