Фуххххххххххххх. Разобрался!

Код:
//Reads data from the buffer
function read(){
$read = array($this->socket);
$res = socket_select($read, $w = null, $e = null, 0);
if (!$res){
return;
}
$tmp = socket_read($this->socket, 10240);
if (($tmp === FALSE && $this->getError() == 10053) || strlen($tmp) == 0){
//Handle event
if ($this->handler){
$this->handler->handleEvent('onDisconnect');
}
}
//Handle event
if ($this->handler){
$this->handler->handleEvent('onData', $tmp);
}
return $tmp;
}