This repository was archived by the owner on May 25, 2020. It is now read-only.
Added
- Event
LoopErrorOccurredEvent(triggered on request processing exception) - Listener
SendExceptionToStderrListenerfor direct exception sending (as a string) intostderr - Listener
StopWorkerListenerfor worker stopping
Changed
- Default package configuration includes
LoopErrorOccurredEventevent listeners:SendExceptionToStderrListenerandStopWorkerListener#42 - When "debug mode" (
app.debug) is not enabled - client will get onlyInternal server errorstring instead exception with stacktrace #42
Fixed
- Double response sending on request processing error (calling
$psr7_client->respondand$psr7_client->getWorker()->errorafter that)
⚠️ Package updating note
You may need to add into your ./config/roadrunner.php next lines:
<?php
return [
// ...
'listeners' => [
// ...
Events\LoopErrorOccurredEvent::class => [
Listeners\SendExceptionToStderrListener::class,
Listeners\StopWorkerListener::class,
],
],
];