This commit is contained in:
2021-03-30 11:56:29 +08:00
parent 4171727784
commit 482f593e3b
21 changed files with 40 additions and 24 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class OnHandshake extends Callback
$eventName = 'listen ' . $clientInfo['server_port'] . ' ' . Event::SERVER_HANDSHAKE;
$event->trigger($eventName, [$request, $response]);
} catch (\Throwable $exception) {
$this->addError($exception);
$this->addError($exception,'throwable');
$this->disconnect($response, 500);
} finally {
fire(Event::SYSTEM_RESOURCE_CLEAN);