client fix
This commit is contained in:
parent
bc67ba224b
commit
09746110f5
@ -211,14 +211,14 @@ class Client
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$contents = '';
|
$contents = "";
|
||||||
while(strlen($contents) < 8){
|
while(strlen($contents) < 8){
|
||||||
$contents .= fread($this->socket, 8 - strlen($contents));
|
$newContent = fread($this->socket, 8 - strlen($contents));
|
||||||
if (strlen($contents) == 0 || $contents === false)
|
if($newContent === false){
|
||||||
{
|
var_dump("deb1 transport error" . $contents);
|
||||||
//var_dump("deb6 transport error");
|
throw new FatalException('deb1 transport error - connection interrupted!' . $contents, FatalException::INTERRUPTED);
|
||||||
throw new FatalException('deb1 transport error - connection interrupted!', FatalException::INTERRUPTED);
|
|
||||||
}
|
}
|
||||||
|
$contents .= $newContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
$array_result = unpack('Vsize/Vhandle', $contents);
|
$array_result = unpack('Vsize/Vhandle', $contents);
|
||||||
|
Loading…
Reference in New Issue
Block a user