[ABANDONED] Moved to https://github.com/spiral/roadrunner-laravel
LoopErrorOccurredEvent
(triggered on request processing exception)SendExceptionToStderrListener
for direct exception sending (as a string) into stderr
StopWorkerListener
for worker stoppingLoopErrorOccurredEvent
event listeners: SendExceptionToStderrListener
and StopWorkerListener
#42
app.debug
) is not enabled - client will get only Internal server error
string instead exception with stacktrace #42
$psr7_client->respond
and $psr7_client->getWorker()->error
after that)You may need to add into your ./config/roadrunner.php
next lines:
<?php
return [
// ...
'listeners' => [
// ...
Events\LoopErrorOccurredEvent::class => [
Listeners\SendExceptionToStderrListener::class,
Listeners\StopWorkerListener::class,
],
],
];
BeforeLoopStartedEvent
BeforeLoopIterationEvent
BeforeRequestHandlingEvent
AfterRequestHandlingEvent
AfterLoopIterationEvent
AfterLoopStoppedEvent
BindRequestListener
ClearInstancesListener
CloneConfigListener
FixSymfonyFileValidationListener
ForceHttpsListener
InjectStatsIntoRequestListener
RebindHttpKernelListener
RebindRouterListener
RebindViewListener
ResetDbConnectionsListener
ResetProvidersListener
ResetSessionListener
RunGarbageCollectorListener
SetServerPortListener
UnqueueCookiesListener
Spiral\RoadRunner\PSR7Client
instance in application containers (closes #21)APP_REFRESH
supports7.4
supportsSetServerPortMiddleware
for automatic setting SERVER_PORT
in server parameters bag if it does not set before (value based on request schema; this middleware fixes empty port value like https://127.0.0.1:/
when exposed default port without set SERVER_PORT
)RR_WORKER_CLASS
supports for overriding default worker class (watch in ./bin/rr-worker
)Makefile
http.fcgi.*
, http.http2.*
, headers.*
) (do not forget update your existing config files)Laravel
version now is 5.5.x
spiral/roadrunner
version now is ^1.4.6
SetServerPortMiddleware
middlewareRULE_METHOD_PREFIX
in CallbacksInitializer
class now protectedBOOL_OPTION_INVERT_LOGIC_NAME_PREFIX
and OPTIONS_PREFIX
in StartOptions
class now protectedstart()
must returns void
in WorkerInterface
interfaceavto-dev/dev-tools