aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-11-21 20:45:56 +0100
committerKim Alvefur <zash@zash.se>2023-11-21 20:45:56 +0100
commitda38e2af42c1b646a7435c9ff69771f3e5781f1d (patch)
tree1f02ed8aef6ee5585d909b3a9594c32bbba9518a
parentf66f6ba60b5b6bfde77deb76b478c940cb2bce2a (diff)
downloadprosody-da38e2af42c1b646a7435c9ff69771f3e5781f1d.tar.gz
prosody-da38e2af42c1b646a7435c9ff69771f3e5781f1d.zip
util.poll: Quadruple number of events retrieved at once from epoll
Better performance under load maybe? See b890ceb1c24f for previous increase
-rw-r--r--util-src/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/poll.c b/util-src/poll.c
index d3d7640f..e69528fa 100644
--- a/util-src/poll.c
+++ b/util-src/poll.c
@@ -26,7 +26,7 @@
#include <unistd.h>
#include <sys/epoll.h>
#ifndef MAX_EVENTS
-#define MAX_EVENTS 64
+#define MAX_EVENTS 256
#endif
#endif
#ifdef USE_POLL