From e094733d7b124c91a5fd7701c093cc2c0dbe793e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 14 Feb 2022 14:47:53 +0800 Subject: [PATCH] modify plugin name --- Coroutine/Http.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Coroutine/Http.php b/Coroutine/Http.php index 94437b8..166cff8 100644 --- a/Coroutine/Http.php +++ b/Coroutine/Http.php @@ -159,11 +159,10 @@ class Http extends Component $fdCollector->set($response->fd, $response); if (is_callable($handshake)) { call_user_func($handshake, $request, $response); - if (is_callable($open)) { - $open($request); - } } - + if (is_callable($open)) { + $open($request); + } while (($data = $response->recv()) instanceof Frame) { try { if ($data->opcode == WEBSOCKET_OPCODE_PING || $data->opcode == WEBSOCKET_OPCODE_PONG) {