From 9564b0ce2c239b02235414d908829fff9c684a8c Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 27 Jan 2021 17:10:06 +0100 Subject: Increased JSON buffer size to 12288 (libnDPI serializes more and more information). * Making Compare&Fetch mandatory. * Added some more Compare&Fetch to prevent TSAN complaining about data races. Fixed possible but more ore less harmless data races during shutdown process. * Shrink SIGNAL handler to a minimum. SYSV Signal handling and MT-safety is awkward. Signed-off-by: Toni Uhlig --- config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.h') diff --git a/config.h b/config.h index c345f15cf..75fcf0e16 100644 --- a/config.h +++ b/config.h @@ -11,7 +11,7 @@ * NOTE: Buffer size needs to keep in sync with other implementations * e.g. dependencies/nDPIsrvd.py */ -#define NETWORK_BUFFER_MAX_SIZE 9728 /* 8192 + 1024 + 512 */ +#define NETWORK_BUFFER_MAX_SIZE 12288 /* 8192 + 4096 */ /* nDPId default config options */ #define nDPId_PIDFILE "/tmp/ndpid.pid" -- cgit v1.2.3