From: Roland Häder Date: Sun, 15 Feb 2009 00:35:17 +0000 (+0000) Subject: No longer full CPU consumtion X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ff92f25b1010678b01baf067da3875dad8e9259;p=hub.git No longer full CPU consumtion --- diff --git a/chat-server.php b/chat-server.php index f228f9a0e..388d8039e 100644 --- a/chat-server.php +++ b/chat-server.php @@ -37,7 +37,7 @@ while (count($clients) > 0) { // get a list of all the clients that have data to be read from // if there are no clients with data, go to next iteration - $left = @socket_select($read, $write = null, $except = null, 0); + $left = @socket_select($read, $write = null, $except = null, 0, 150); if ($left < 1) { continue; }