tcpserver : catch the errors, as a kill on a pending stream_select display a PHP Warning
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4035 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -109,7 +109,9 @@ class tcpserver
|
|||||||
$read = $sockServer;
|
$read = $sockServer;
|
||||||
$write = null;
|
$write = null;
|
||||||
$except = null;
|
$except = null;
|
||||||
if (stream_select ($read, $write, $except, 0, 200000) < 1)
|
// catch the errors, as a kill on a pending stream_select display a PHP
|
||||||
|
// Warning
|
||||||
|
if (@stream_select ($read, $write, $except, 0, 200000) < 1)
|
||||||
continue;
|
continue;
|
||||||
foreach ($read as $sock)
|
foreach ($read as $sock)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user