Fix binkp remote closing connection, add/delete session details, menu item this system, minor CSS fixes, move system form editing to individual files
This commit is contained in:
@@ -300,8 +300,15 @@ final class SocketClient {
|
||||
throw new SocketException($x=socket_last_error($this->connection),socket_strerror($x));
|
||||
|
||||
// If our buffer is null, see if we have any out of band data.
|
||||
if (($rc == 0) && is_nulL($buf) && ($this->hasData(0) > 0))
|
||||
socket_recv($this->connection,$buf, $len,MSG_OOB);
|
||||
// @todo We throw an errorexception when the socket is closed by the remote I think.
|
||||
if (($rc == 0) && is_nulL($buf) && ($this->hasData(0) > 0)) {
|
||||
try {
|
||||
socket_recv($this->connection,$buf, $len,MSG_OOB);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
throw new SocketException($x=socket_last_error($this->connection),socket_strerror($x));
|
||||
}
|
||||
}
|
||||
|
||||
return is_null($buf) ? '' : $buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user