aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/poll.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-08 15:33:15 +0200
committerKim Alvefur <zash@zash.se>2018-10-08 15:33:15 +0200
commit28522988cc6efe2c428b7c8aa9588743e4ce5ca5 (patch)
tree0b735db235023b7fc4f448947354e524cde6a4f7 /util-src/poll.c
parentab950b3e7993c975a951c0adc9f83a4dd6414dd6 (diff)
downloadprosody-28522988cc6efe2c428b7c8aa9588743e4ce5ca5.tar.gz
prosody-28522988cc6efe2c428b7c8aa9588743e4ce5ca5.zip
util.poll: Increase max epoll events per call
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.
Diffstat (limited to 'util-src/poll.c')
-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 11e3fecf..502c5762 100644
--- a/util-src/poll.c
+++ b/util-src/poll.c
@@ -19,7 +19,7 @@
#ifdef USE_EPOLL
#include <sys/epoll.h>
#ifndef MAX_EVENTS
-#define MAX_EVENTS 10
+#define MAX_EVENTS 64
#endif
#else
#include <sys/select.h>