Closed devoltt closed 3 years ago
It only outputs in seconds or milliseconds. Where in their docs do you see values could be in µs or ns?
@themsaid I just debug this error and dump $debug['elapsed']
, before the error - its value was outputting microseconds. Maybe a nanosecond check is superfluous, but when a request is processed in less than one millisecond , it outputs a value in microseconds.
Handled in https://github.com/laravel/octane/pull/206
Description:
When roadrunner outputs upstream time with microseconds (µs) octane server can't parse value and server is falling down
Steps To Reproduce:
1) Add octane route like this to routes/web.php: \Laravel\Octane\Facades\Octane::route('GET', '/test', fn() => new Response('0'));
2) Run octane with 2 workers
php artisan octane:start --workers=2 --server=roadrunner
3) Call this endpoint multiple time (~10-15) and when command parse output with microseconds, server is falling with error
I suggest replace
https://github.com/laravel/octane/blob/master/src/Commands/StartRoadRunnerCommand.php#L153
with something like this:
P.S. sorry for my English