shortened poll() timeout.
This commit is contained in:
parent
ad15393732
commit
ddbb465540
|
@ -47,7 +47,7 @@ ISocket* CTCPListenSocket::accept()
|
||||||
pfds[0].events = CNetwork::kPOLLIN;
|
pfds[0].events = CNetwork::kPOLLIN;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
CThread::testCancel();
|
CThread::testCancel();
|
||||||
const int status = CNetwork::poll(pfds, 1, 50);
|
const int status = CNetwork::poll(pfds, 1, 10);
|
||||||
if (status > 0 && (pfds[0].revents & CNetwork::kPOLLIN) != 0) {
|
if (status > 0 && (pfds[0].revents & CNetwork::kPOLLIN) != 0) {
|
||||||
CNetwork::Address addr;
|
CNetwork::Address addr;
|
||||||
CNetwork::AddressLength addrlen = sizeof(addr);
|
CNetwork::AddressLength addrlen = sizeof(addr);
|
||||||
|
|
Loading…
Reference in New Issue