diff --git a/src/RoadRunner/ServerProcessInspector.php b/src/RoadRunner/ServerProcessInspector.php index 0e3133545..a52728921 100644 --- a/src/RoadRunner/ServerProcessInspector.php +++ b/src/RoadRunner/ServerProcessInspector.php @@ -47,6 +47,7 @@ public function reloadServer(): void tap($this->processFactory->createProcess([ $this->findRoadRunnerBinary(), 'reset', + '-o', 'version=3', '-o', "rpc.listen=tcp://$host:$rpcPort", '-s', ], base_path()))->start()->waitUntil(function ($type, $buffer) { diff --git a/tests/RoadRunnerServerProcessInspectorTest.php b/tests/RoadRunnerServerProcessInspectorTest.php index 7d92095bb..10701e426 100644 --- a/tests/RoadRunnerServerProcessInspectorTest.php +++ b/tests/RoadRunnerServerProcessInspectorTest.php @@ -63,7 +63,7 @@ public function test_roadrunner_server_process_can_be_reloaded() ]); $processFactory->shouldReceive('createProcess')->with( - [$this->findRoadRunnerBinary(), 'reset', '-o', 'rpc.listen=tcp://127.0.0.1:6002', '-s'], + [$this->findRoadRunnerBinary(), 'reset', '-o', 'server=3', '-o', 'rpc.listen=tcp://127.0.0.1:6002', '-s'], base_path(), )->andReturn($process = Mockery::mock('stdClass'));