note 82016 deleted from function.socket-read by felipe
| From: | felipe@php.net | Date: | Wed, 02 Jul 2008 15:18:58 +0000 |
| Subject: | note 82016 deleted from function.socket-read by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141073@lists.php.net to get a copy of this message | ||
Note Submitter: tech [{at}] swatcash [{dot}] com
----
a simple work around to non-blocking working with normal read is like so:
$read = array($socket);
$write = NULL;
$except = NULL;
while(1) {
$num_changed_sockets = socket_select($read, $write, $except, 0, 1);
if ( $num_changed_sockets > '0' ) {
socket_read($socket,10000,PHP_NORMAL_READ);
}