From acf8601c9547a90db55380b59ce18e96de6a1521 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 28 Jan 2021 14:31:58 +0000 Subject: [PATCH] client+server: Process fewer epoll events in one go This will allow us to terminate quicker because we will evaluate the outer while loop more often which should be a rather cheap operation. Signed-off-by: Michael Tremer --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index fe71936..de8654b 100644 --- a/src/main.h +++ b/src/main.h @@ -35,7 +35,7 @@ // Set the size of the read/write buffer to 1 MiB #define BUFFER_SIZE 1048576 -#define EPOLL_MAX_EVENTS 1024 +#define EPOLL_MAX_EVENTS 128 struct fireperf_config { int terminated; -- 2.47.2