From 9c61ea5093fb9ddfd94a167fa3f34b7c5c82b0ec Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Thu, 6 Feb 2020 00:58:19 +0100 Subject: [PATCH] buffer from 2K to 2M, there is room to improve performances here --- src/ipc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipc.h b/src/ipc.h index c0bd414..21fe210 100644 --- a/src/ipc.h +++ b/src/ipc.h @@ -16,7 +16,8 @@ #define RUNDIR "/run/ipc/" #define PATH_MAX 4096 #define IPC_HEADER_SIZE 6 -#define IPC_MAX_MESSAGE_SIZE 2000-IPC_HEADER_SIZE +#define __IPC_BASE_SIZE 2000000 // 2 MB, plenty enough space for messages +#define IPC_MAX_MESSAGE_SIZE __IPC_BASE_SIZE-IPC_HEADER_SIZE #define IPC_VERSION 4