note 111592 added to function.socket-select

From: Date: Wed, 06 Mar 2013 19:39:00 +0000
Subject: note 111592 added to function.socket-select
Groups: php.notes 
Request: Send a blank email to php-notes+get-193965@lists.php.net to get a copy of this message
Probably you will want to use // 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 if (socket_select($read, $write = NULL, $except = NULL, NULL) < 1) continue; instead if (socket_select($read, $write = NULL, $except = NULL, 0) < 1) continue; which will hang your CPU to 100% (return immediate if nothing to be done) ---- Server IP: 69.147.83.199 Probable Submitter: 94.52.46.10 ---- Manual Page -- http://php.net/manual/en/function.socket-select.php Edit -- https://master.php.net/note/edit/111592 Del: integrated -- https://master.php.net/note/delete/111592/integrated Del: useless -- https://master.php.net/note/delete/111592/useless Del: bad code -- https://master.php.net/note/delete/111592/bad+code Del: spam -- https://master.php.net/note/delete/111592/spam Del: non-english -- https://master.php.net/note/delete/111592/non-english Del: in docs -- https://master.php.net/note/delete/111592/in+docs Del: other reasons-- https://master.php.net/note/delete/111592 Reject -- https://master.php.net/note/reject/111592 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193965) next »