Just noticed that you have to loop socket_select () when using UDP to get all queued packets:
<?php
while (socket_select ($aRead, $aWrite, $aExcept, 1) > 0) {
foreach ($aReadUdp as $oSocket) {
$this->clientReadUdp ($oSocket);
}
}
?>
That's important because every call of socket_select () on UDP brings you only one result. But there could be 10.000 results queued and if your turnarround time is to slow (server busy, other sleeps etc.), you'll never progress all results in near realtime.