改名
This commit is contained in:
@@ -248,6 +248,7 @@ class Socket
|
|||||||
|
|
||||||
$this->readWatcher = \Amp\onReadable($this->stream, function () {
|
$this->readWatcher = \Amp\onReadable($this->stream, function () {
|
||||||
do {
|
do {
|
||||||
|
try {
|
||||||
if(!$this->isSocketDead($this->stream)){
|
if(!$this->isSocketDead($this->stream)){
|
||||||
$newData = @fread($this->stream, self::READ_MAX_LEN);
|
$newData = @fread($this->stream, self::READ_MAX_LEN);
|
||||||
}else{
|
}else{
|
||||||
@@ -257,6 +258,9 @@ class Socket
|
|||||||
if ($newData) {
|
if ($newData) {
|
||||||
$this->read($newData);
|
$this->read($newData);
|
||||||
}
|
}
|
||||||
|
}catch (\Exception $exception){
|
||||||
|
var_dump($exception->getMessage());
|
||||||
|
}
|
||||||
} while ($newData);
|
} while ($newData);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user