Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -113,6 +113,8 @@ 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->client->recv();
|
$receive = $this->client->recv();
|
||||||
|
|
||||||
|
var_dump($receive);
|
||||||
|
|
||||||
[$header, $body] = explode("\r\n\r\n", $receive);
|
[$header, $body] = explode("\r\n\r\n", $receive);
|
||||||
|
|
||||||
$header = explode("\r\n", $header);
|
$header = explode("\r\n", $header);
|
||||||
|
|||||||
+1
-4
@@ -17,10 +17,7 @@ trait TSwooleClient
|
|||||||
$sslKey = $this->getSslKeyFile();
|
$sslKey = $this->getSslKeyFile();
|
||||||
$sslCa = $this->getCa();
|
$sslCa = $this->getCa();
|
||||||
|
|
||||||
$params = [
|
$params = [];
|
||||||
'open_eof_check' => true,
|
|
||||||
'package_eof' => "\r\n\r\n"
|
|
||||||
];
|
|
||||||
if ($this->getConnectTimeout() > 0) {
|
if ($this->getConnectTimeout() > 0) {
|
||||||
$params['timeout'] = $this->getConnectTimeout();
|
$params['timeout'] = $this->getConnectTimeout();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user