diff --git a/.env.example b/.env.example index 3bb516de..ee58c88d 100644 --- a/.env.example +++ b/.env.example @@ -84,7 +84,7 @@ SERVER_WEBSOCKET_HOST = 127.0.0.1 SERVER_WEBSOCKET_PORT = 9527 SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_ENABLED = true SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_DELAY_COUNT = 0 -SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_TIME_INTERVAL = 20 +SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_TIME_INTERVAL = 3000 SERVER_CUSTOM_PROCESS_MAX_REQUEST_ENABLED = true SERVER_CUSTOM_PROCESS_MAX_REQUEST_MAX_REQUEST = 0 SERVER_CUSTOM_PROCESS_MAX_REQUEST_MAX_WAIT_TIME = 3 diff --git a/.env.phpunit.example b/.env.phpunit.example index 73d4d342..3fa10440 100644 --- a/.env.phpunit.example +++ b/.env.phpunit.example @@ -84,7 +84,7 @@ SERVER_WEBSOCKET_HOST = 127.0.0.1 SERVER_WEBSOCKET_PORT = 9527 SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_ENABLED = true SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_DELAY_COUNT = 0 -SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_TIME_INTERVAL = 20 +SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_TIME_INTERVAL = 3000 SERVER_CUSTOM_PROCESS_MAX_REQUEST_ENABLED = true SERVER_CUSTOM_PROCESS_MAX_REQUEST_MAX_REQUEST = 0 SERVER_CUSTOM_PROCESS_MAX_REQUEST_MAX_WAIT_TIME = 3 diff --git a/config/server.php b/config/server.php index b462237e..7f9cc725 100644 --- a/config/server.php +++ b/config/server.php @@ -52,7 +52,7 @@ // 默认检测间隔时间 // Swoole 检测间隔时间,单位为毫秒 - 'time_interval' => (int) App::proxy()->env('SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_TIME_INTERVAL', 20), + 'time_interval' => (int) App::proxy()->env('SERVER_CUSTOM_PROCESS_HOT_OVERLOAD_TIME_INTERVAL', 3000), // 默认源代码监听目录 // 使用 HotOverload 监听 PHP 源码默认目录