Remove memory statistics feature from CivetWeb. It makes the webserver somewhat faster and using less memory. We are not using it anyway.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-01-28 11:50:34 +01:00
parent 37265dffc0
commit 5f593bfb3b
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
2 changed files with 1 additions and 6 deletions

View File

@ -21,15 +21,11 @@ add_library(civetweb OBJECT ${sources})
# We can remove the NO_SSL later on. It adds additional constraints to the build system (availablity of libSSL-dev)
# NO_CGI = no CGI support (we don't need it)
# NO_SSL_DL NO_SSL = no SSL support (for now)
# USE_SERVER_STATS = makes a few anonymous statistics available, such as
# - Number of connections (currently and total)
# - Amount of data read and written
# USE_IPV6: add IPv6 support
target_compile_definitions(civetweb PRIVATE NO_CGI
NO_DLOPEN
NO_SSL_DL
NO_SSL
USE_SERVER_STATS
USE_IPV6
USE_LUA)

View File

@ -106,8 +106,7 @@ void http_init(void)
unsigned int features = MG_FEATURES_FILES |
// MG_FEATURES_CGI |
MG_FEATURES_IPV6 |
MG_FEATURES_CACHE |
MG_FEATURES_STATS;
MG_FEATURES_CACHE;
if(mg_init_library(features) == 0)
{