buffer from 2K to 2M, there is room to improve performances here

more_to_read
Philippe PITTOLI 2020-02-06 00:58:19 +01:00
parent 22f3a2234a
commit 9c61ea5093
1 changed files with 2 additions and 1 deletions

View File

@ -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