summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index caa4dc45b..37c61e9e8 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -73,11 +73,11 @@ class SocketEngine {
fd_set wfdset, rfdset; /* Readable and writeable sets for select() */
#endif
#ifdef USE_KQUEUE
- struct kevent ke_list[65535]; /* Up to 64k sockets for kqueue */
+ struct kevent ke_list[MAX_DESCRIPTORS]; /* Up to 64k sockets for kqueue */
struct timespec ts; /* kqueue delay value */
#endif
#ifdef USE_EPOLL
- struct epoll_event events[65535]; /* Up to 64k sockets for epoll */
+ struct epoll_event events[MAX_DESCRIPTORS]; /* Up to 64k sockets for epoll */
#endif
public: