This commit is contained in:
阿不叮咚
2025-09-24 13:39:23 +08:00
parent 5f1676d329
commit ae5b2b5af2
5 changed files with 10 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ declare(strict_types=1);
use Hyperf\Framework\Bootstrap\PipeMessageCallback;
use Hyperf\Framework\Bootstrap\WorkerExitCallback;
use Hyperf\Framework\Bootstrap\WorkerStartCallback;
use Hyperf\JsonRpc\HttpServer;
use Hyperf\JsonRpc\HttpServer as JsonRpcHttpServer;
use Hyperf\Server\Event;
use Hyperf\Server\Server;
use Swoole\Constant;
@@ -36,10 +36,10 @@ return [
'port' => (int) env('JSON_RPC_PORT', 9620),
'sock_type' => SWOOLE_SOCK_TCP,
'callbacks' => [
Event::ON_REQUEST => [HttpServer::class, 'onRequest'],
Event::ON_REQUEST => [JsonRpcHttpServer::class, 'onRequest'],
],
'settings' => [
'open_eof_split' => true,
// 'open_eof_split' => true,
'package_eof' => "\r\n",
'package_max_length' => 1024 * 1024 * 2,
],