Revert "改名"
This reverts commit fdf58326
This commit is contained in:
+9
-2
@@ -108,8 +108,15 @@ class AsyncClient extends ClientAbstracts
|
|||||||
{
|
{
|
||||||
$array = $this->_parseHeaders($path);
|
$array = $this->_parseHeaders($path);
|
||||||
|
|
||||||
$this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content. "\r\n\r\n");
|
$this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content . "\r\n\r\n");
|
||||||
$receive = $this->client->recv();
|
$receive = '';
|
||||||
|
while (true) {
|
||||||
|
$_tmp = $this->client->recv();
|
||||||
|
if (empty($_tmp)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$receive .= $_tmp;
|
||||||
|
}
|
||||||
|
|
||||||
Kiri::getDi()->get(Logger::class)->debug(implode("\r\n", $array) . "\r\n\r\n" . $content);
|
Kiri::getDi()->get(Logger::class)->debug(implode("\r\n", $array) . "\r\n\r\n" . $content);
|
||||||
Kiri::getDi()->get(Logger::class)->debug($receive);
|
Kiri::getDi()->get(Logger::class)->debug($receive);
|
||||||
|
|||||||
Reference in New Issue
Block a user