mirror of
https://github.com/anope/anope.git
synced 2026-06-28 04:56:38 +02:00
Made the default socket poller use poll() because it is supported on most platforms
This commit is contained in:
@@ -10,12 +10,10 @@ class SocketEngineEPoll : public SocketEngineBase
|
||||
long max;
|
||||
int EngineHandle;
|
||||
epoll_event *events;
|
||||
unsigned SocketCount;
|
||||
|
||||
public:
|
||||
SocketEngineEPoll()
|
||||
{
|
||||
SocketCount = 0;
|
||||
max = ulimit(4, 0);
|
||||
|
||||
if (max <= 0)
|
||||
@@ -57,8 +55,6 @@ class SocketEngineEPoll : public SocketEngineBase
|
||||
}
|
||||
|
||||
Sockets.insert(std::make_pair(ev.data.fd, s));
|
||||
|
||||
++SocketCount;
|
||||
}
|
||||
|
||||
void DelSocket(Socket *s)
|
||||
@@ -76,8 +72,6 @@ class SocketEngineEPoll : public SocketEngineBase
|
||||
}
|
||||
|
||||
Sockets.erase(ev.data.fd);
|
||||
|
||||
--SocketCount;
|
||||
}
|
||||
|
||||
void MarkWritable(Socket *s)
|
||||
|
||||
Reference in New Issue
Block a user