diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-29 19:31:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-29 19:31:39 +0000 |
commit | ee9f5d77844c37a98aadfea8677d58e30b6a3dc9 (patch) | |
tree | 720df7b9215d00d04681fe009257a0a3c2221c69 /include/socketengine.h | |
parent | f7224a0009b41f12e8d6b718cb5c73e5f1950949 (diff) |
Changed 65535 to MAX_DESCRIPTORS calculated at configure-time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2699 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socketengine.h')
-rw-r--r-- | include/socketengine.h | 4 |
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: |