From: Michael Tremer Date: Thu, 28 Jan 2021 14:31:58 +0000 (+0000) Subject: client+server: Process fewer epoll events in one go X-Git-Tag: 0.1.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acf8601c9547a90db55380b59ce18e96de6a1521;p=fireperf.git 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 --- 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;