From 12968ba98642bd7057e8e7f41e184ab2d61671ed Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 3 May 2018 12:10:02 +0200 Subject: lib: Make UNIX socket buffer size configurable This makes the buffer size used by the UNIX sockets configurable. In case of a lot of IPCPs in the system it might become too small with the default value, resulting in irm command failures. The user can now easily configure it with an adequate value. Signed-off-by: Sander Vrijders Signed-off-by: Dimitri Staessens --- include/ouroboros/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/ouroboros/CMakeLists.txt') diff --git a/include/ouroboros/CMakeLists.txt b/include/ouroboros/CMakeLists.txt index c0a83030..fe0ccf5d 100644 --- a/include/ouroboros/CMakeLists.txt +++ b/include/ouroboros/CMakeLists.txt @@ -1,6 +1,12 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" "${CMAKE_CURRENT_BINARY_DIR}/version.h" @ONLY) +set(SOCK_BUF_SIZE 10240 CACHE STRING + "Size of the buffer used by the UNIX sockets for local IPC") + +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/sockets.h.in" + "${CMAKE_CURRENT_BINARY_DIR}/sockets.h" @ONLY) + set(HEADER_FILES cacep.h cdefs.h -- cgit v1.2.3