..
This commit is contained in:
@@ -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,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user