diff --git a/websockets.php b/websockets.php index eb6a90e..47f665e 100644 --- a/websockets.php +++ b/websockets.php @@ -1,7 +1,7 @@ maxBufferSize = $bufferLength; @@ -86,7 +89,7 @@ public function run() { $write = $except = null; $this->_tick(); $this->tick(); - @socket_select($read,$write,$except,1); + @socket_select($read,$write,$except, $this->tv_sec, $this->tv_usec); foreach ($read as $socket) { if ($socket == $this->master) { $client = socket_accept($socket);