From 28522988cc6efe2c428b7c8aa9588743e4ce5ca5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 8 Oct 2018 15:33:15 +0200 Subject: util.poll: Increase max epoll events per call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the struct roughly the same size in both epoll and select mode (64bit). There doesn’t seem to be much guidance on an appropriate size, it does not seem to matter too much since if there are more events they will simply show up in the next epoll_wait call. The number of exactly concurrent events should be fairly low most of the time anyways. --- util-src/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src') diff --git a/util-src/poll.c b/util-src/poll.c index 11e3fecf..502c5762 100644 --- a/util-src/poll.c +++ b/util-src/poll.c @@ -19,7 +19,7 @@ #ifdef USE_EPOLL #include #ifndef MAX_EVENTS -#define MAX_EVENTS 10 +#define MAX_EVENTS 64 #endif #else #include -- cgit v1.2.3