From de24ee4eca3ea192cdeb6d46c81620b9c66d9d41 Mon Sep 17 00:00:00 2001 From: Tobias Kalbitz Date: Sat, 9 Mar 2019 21:39:13 +0100 Subject: [PATCH] EasySocket::accept() waits 500ms instead 0.5ms till select timeout. --- easy_profiler_core/easy_socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_profiler_core/easy_socket.cpp b/easy_profiler_core/easy_socket.cpp index bfb1e5c..031c29b 100644 --- a/easy_profiler_core/easy_socket.cpp +++ b/easy_profiler_core/easy_socket.cpp @@ -320,7 +320,7 @@ int EasySocket::accept() fd_set fdwrite = fdread; fd_set fdexcl = fdread; - struct timeval tv { 0, 500 }; + struct timeval tv { 0, 500000 }; const int rc = ::select((int)m_socket + 1, &fdread, &fdwrite, &fdexcl, &tv); if (rc <= 0) return -1; // there is no connection for accept