..
This commit is contained in:
@@ -15,20 +15,6 @@ use function Hyperf\Support\env;
|
||||
return [
|
||||
'mode' => SWOOLE_PROCESS,
|
||||
'servers' => [
|
||||
// [
|
||||
// 'name' => 'http',
|
||||
// 'type' => Server::SERVER_HTTP,
|
||||
// 'host' => '0.0.0.0',
|
||||
// 'port' => 9501,
|
||||
// 'sock_type' => SWOOLE_SOCK_TCP,
|
||||
// 'callbacks' => [
|
||||
// Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
|
||||
// ],
|
||||
// 'options' => [
|
||||
// // Whether to enable request lifecycle event
|
||||
// 'enable_request_lifecycle' => false,
|
||||
// ],
|
||||
// ],
|
||||
[
|
||||
'name' => 'jsonrpc-http',
|
||||
'type' => Server::SERVER_HTTP,
|
||||
@@ -39,7 +25,7 @@ return [
|
||||
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