mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 00:31:02 +08:00
EasySocket::accept() waits 500ms instead 0.5ms till select timeout.
This commit is contained in:
parent
e68abb25fe
commit
de24ee4eca
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user