From 7ff92f25b1010678b01baf067da3875dad8e9259 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 15 Feb 2009 00:35:17 +0000 Subject: [PATCH] No longer full CPU consumtion --- chat-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5