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:
2018-01-15 14:30:03 +00:00
parent ffdce5eb30
commit c6c01323de

View File

@@ -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)
{ {