From ddbb465540fdf86136331262b4c644397b6174d7 Mon Sep 17 00:00:00 2001 From: crs Date: Sun, 2 Jun 2002 23:07:57 +0000 Subject: [PATCH] shortened poll() timeout. --- net/CTCPListenSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/CTCPListenSocket.cpp b/net/CTCPListenSocket.cpp index 9dab306a..28e254c9 100644 --- a/net/CTCPListenSocket.cpp +++ b/net/CTCPListenSocket.cpp @@ -47,7 +47,7 @@ ISocket* CTCPListenSocket::accept() pfds[0].events = CNetwork::kPOLLIN; for (;;) { 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) { CNetwork::Address addr; CNetwork::AddressLength addrlen = sizeof(addr);