I have a socket error when running the socket_recv inside this function:
function readByteXByteSIBmsg() {
$msg = \"\";
$buf=\"\";
try {
while( $
The error is EAGAIN
(or EWOULDBLOCK
, sometimes those are the same error) and means that the socket is non-blocking and that there is nothing to read at the moment. You can busy-wait while you have that error until you read something, or you use some other method to find out if there is data to read before trying to receive.