Revert "改名"
This reverts commit fdf58326
This commit is contained in:
+7
-7
@@ -109,7 +109,7 @@ class AsyncClient extends ClientAbstracts
|
|||||||
$array = $this->_parseHeaders($path);
|
$array = $this->_parseHeaders($path);
|
||||||
|
|
||||||
if ($this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content)) {
|
if ($this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content)) {
|
||||||
$receive = $this->client->recv();
|
$receive = $this->waite($this->client, '');
|
||||||
|
|
||||||
Kiri::getDi()->get(Logger::class)->debug($receive);
|
Kiri::getDi()->get(Logger::class)->debug($receive);
|
||||||
|
|
||||||
@@ -143,17 +143,17 @@ class AsyncClient extends ClientAbstracts
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param $client
|
||||||
* @param $string
|
* @param $string
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
private function waite($string): mixed
|
private function waite($client, $string): mixed
|
||||||
{
|
{
|
||||||
$tmp = $this->client->recv();
|
$tmp = $client->recv();
|
||||||
if (empty($tmp)) {
|
if (!empty($tmp)) {
|
||||||
return $string;
|
return $this->waite($client, $string . $tmp);
|
||||||
}
|
}
|
||||||
$string .= $tmp;
|
return $string;
|
||||||
return $this->waite($string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user