diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 14:37:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 14:37:09 +0000 |
commit | dfaa565d48c318ad3b99909193b91f72c3997bc0 (patch) | |
tree | 9bcb6fe71af23a19c549858a031f9b331e49d96b /src/socketengine.cpp | |
parent | e7ccda83db182c56e9bde5693c28f48ac5c3ea95 (diff) |
Increased socketengine wait cycles
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2341 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r-- | src/socketengine.cpp | 6 |
1 files 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<int> &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<int> &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 |