From dfaa565d48c318ad3b99909193b91f72c3997bc0 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 14:37:09 +0000 Subject: Increased socketengine wait cycles git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2341 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/socketengine.cpp b/src/socketengine.cpp index e425b7b0f..d482fd6d6 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -164,7 +164,7 @@ bool SocketEngine::Wait(std::vector &fdlist) } tval.tv_sec = 0; - tval.tv_usec = 1000L; + tval.tv_usec = 10000L; sresult = select(FD_SETSIZE, &rfdset, &wfdset, NULL, &tval); if (sresult > 0) { @@ -179,14 +179,14 @@ bool SocketEngine::Wait(std::vector &fdlist) } #endif #ifdef USE_KQUEUE - ts.tv_nsec = 1000L; + ts.tv_nsec = 10000L; ts.tv_sec = 0; int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); for (int j = 0; j < i; j++) fdlist.push_back(ke_list[j].ident); #endif #ifdef USE_EPOLL - int i = epoll_wait(EngineHandle, events, 65535, 1); + int i = epoll_wait(EngineHandle, events, 65535, 100); for (int j = 0; j < i; j++) fdlist.push_back(events[j].data.fd); #endif -- cgit v1.2.3