cleanup
This commit is contained in:
parent
93a7a997f8
commit
0054d8931d
@ -55,18 +55,19 @@ class AsynchronousFileReader {
|
|||||||
unset($this->sockets[$key]);
|
unset($this->sockets[$key]);
|
||||||
$this->handleContent($socket);
|
$this->handleContent($socket);
|
||||||
continue 2;
|
continue 2;
|
||||||
}else{
|
|
||||||
$meta = stream_get_meta_data($socket->socket);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$meta = stream_get_meta_data($socket->socket);
|
||||||
} while($meta["unread_bytes"] > 0);
|
} while($meta["unread_bytes"] > 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles the Content
|
* Handles the Content
|
||||||
|
*
|
||||||
* @param $socket
|
* @param $socket
|
||||||
*/
|
*/
|
||||||
private function handleContent(SocketStructure $socket){ //TODO timeout handling
|
private function handleContent(SocketStructure $socket) { //TODO timeout handling
|
||||||
//if (feof($socket->socket) || time() > ($socket->creationTime + self::SOCKET_TIMEOUT)) {
|
//if (feof($socket->socket) || time() > ($socket->creationTime + self::SOCKET_TIMEOUT)) {
|
||||||
$result = "";
|
$result = "";
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user