some fixes

This commit is contained in:
kremsy
2014-02-07 14:05:10 +01:00
committed by Steffen Schröder
parent f40b60e065
commit dfb9debdd2
4 changed files with 28 additions and 26 deletions

View File

@ -28,7 +28,7 @@ class AsynchronousFileReader implements TimerListener {
public function appendData() {
foreach($this->sockets as $key => &$socket) {
/** @var SocketStructure $socket */
$socket->streamBuffer .= fread($socket->socket, 512);
$socket->streamBuffer .= fread($socket->socket, 1024);
$info = stream_get_meta_data($socket->socket);
if (feof($socket->socket) || $info['timed_out']) {