Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-11 15:20:00 +08:00
parent a026a610a1
commit bc049a3c77
+8 -19
View File
@@ -115,7 +115,14 @@ class AsyncClient extends ClientAbstracts
} }
} }
$this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content); $this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content);
$receive = $this->waite($this->client); $receive = '';
while (true) {
$_tmp = $this->client->recv();
if (empty($_tmp)) {
break;
}
$receive .= $_tmp;
}
Kiri::getDi()->get(Logger::class)->debug($receive); Kiri::getDi()->get(Logger::class)->debug($receive);
@@ -130,24 +137,6 @@ class AsyncClient extends ClientAbstracts
} }
/**
* @param $client
* @return string
*/
private function waite($client): string
{
$receive = '';
while (true) {
$_tmp = $client->recv();
if (empty($_tmp)) {
break;
}
$receive .= $_tmp;
}
return $receive;
}
private function chunked() private function chunked()
{ {