Merge pull request #1041 from chme/ws-header-space

[ws] Set websocket header data space
This commit is contained in:
Christian Meffert 2020-07-05 10:57:54 +02:00 committed by GitHub
commit 07f3f808c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);