summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/socketengine_epoll.cpp2
-rw-r--r--src/socketengine_kqueue.cpp4
-rw-r--r--src/socketengine_select.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp
index c36e964f8..49fd1339a 100644
--- a/src/socketengine_epoll.cpp
+++ b/src/socketengine_epoll.cpp
@@ -126,7 +126,7 @@ int EPollEngine::DispatchEvents()
{
socklen_t codesize;
int errcode;
- int i = epoll_wait(EngineHandle, events, MAX_DESCRIPTORS, 150);
+ int i = epoll_wait(EngineHandle, events, MAX_DESCRIPTORS, 1000);
for (int j = 0; j < i; j++)
{
if (events[j].events & EPOLLHUP)
diff --git a/src/socketengine_kqueue.cpp b/src/socketengine_kqueue.cpp
index ebc1fffbd..b56ca264c 100644
--- a/src/socketengine_kqueue.cpp
+++ b/src/socketengine_kqueue.cpp
@@ -132,8 +132,8 @@ int KQueueEngine::GetRemainingFds()
int KQueueEngine::DispatchEvents()
{
- ts.tv_nsec = 5000L;
- ts.tv_sec = 0;
+ ts.tv_nsec = 0;
+ ts.tv_sec = 1;
int i = kevent(EngineHandle, NULL, 0, &ke_list[0], MAX_DESCRIPTORS, &ts);
for (int j = 0; j < i; j++)
{
diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp
index 5be97eff6..2be16b282 100644
--- a/src/socketengine_select.cpp
+++ b/src/socketengine_select.cpp
@@ -110,8 +110,8 @@ int SelectEngine::DispatchEvents()
FD_SET (a->second, &errfdset);
}
- tval.tv_sec = 0;
- tval.tv_usec = 50L;
+ tval.tv_sec = 1;
+ tval.tv_usec = 0;
sresult = select(FD_SETSIZE, &rfdset, &wfdset, &errfdset, &tval);
if (sresult > 0)
{