diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-08 15:33:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-08 15:33:15 +0200 |
commit | 080fdb85d247860ac307e31618486f22fa54084e (patch) | |
tree | 0b735db235023b7fc4f448947354e524cde6a4f7 /util-src | |
parent | 59cd2f787e36f9c260311ee833cc91e67c1d431c (diff) | |
download | prosody-080fdb85d247860ac307e31618486f22fa54084e.tar.gz prosody-080fdb85d247860ac307e31618486f22fa54084e.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')
-rw-r--r-- | util-src/poll.c | 2 |
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> |