roadrunner-server / roadrunner

🤯 High-performance PHP application server, process manager written in Go and powered with plugins
https://docs.roadrunner.dev
MIT License
7.86k stars 409 forks source link

Symfony Debug bar: Wrong request processing time #215

Closed xepozz closed 4 years ago

xepozz commented 4 years ago

I started RR. I wait some minutes and do request.

DeepinScreenshot_выберите-область_20191208141146

wolfy-j commented 4 years ago

I think the Symfony Debug bar relies on some SERVER value. Not really RR bug but we can set the header if needed.

xepozz commented 4 years ago

About half of year ago I was tested Yii2+RoadRunner and has the same problem

wolfy-j commented 4 years ago

Because this frameworks was build for dying model, so their debut bars rely on script start time which is not relevant for long running apps.

wolfy-j commented 4 years ago

Did you get the answer from @stof ? Can i close this issue now?

xepozz commented 4 years ago

Yes, sure. There is my temporary solution:

class Kernel extends BaseKernel
{
    use MicroKernelTrait;

    public function boot()
    {
        $this->startTime = microtime(true);
        parent::boot();
    }

   /// ...
}