Skip to content

Releases: FluffyDiscord/roadrunner-symfony-bundle

v4.4.0

13 Oct 17:11

Choose a tag to compare

RR 2025, symfony 7.3

v4.3.0

25 Jun 16:45

Choose a tag to compare

HttpWorker - fix worker getting stuck due to missing 'continue' when out of app uncaught exception happens

v4.2.2

30 May 17:24

Choose a tag to compare

do not run service reset in dev mode to keep collected Symfony profiler data

Full Changelog: v4.2.1...v4.2.2

v4.2.1

20 Mar 20:05

Choose a tag to compare

Full Changelog: v4.2.0...v4.2.1

v4.2.0

20 Mar 19:01

Choose a tag to compare

Update allows you to reset your services after response has been sent instead of when request arrives. This allows your worker to respond to new requests quicker.

The default behavior of Symfony's kernel is to reset your services before request is handled and slows down the initial reaction time.

When new request arrives Your app After response was sent back
Symfony does a reset, if something fails here, request may be lost waits for reset to be done, then handles your request
RoadRunnerBundle immediately handles your request does a reset

You might want to manually refresh Doctrine connections before each request is handled you are using Mysql, MariaDB or other database that cannot handle long/persistent connection. For this, it's up to you to create event listener for WorkerRequestReceivedEvent

PS: PostgreSQL does not need this workaround .

To disable Symfony's resetting when request arrives, adjust your kernel class as shown bellow.

<?php

namespace App\Kernel;

- use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
+ use FluffyDiscord\RoadRunnerBundle\Kernel\RoadRunnerMicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;

class Kernel extends BaseKernel
{
-    use MicroKernelTrait;
+    use RoadRunnerMicroKernelTrait;
}

v4.1.0

16 Feb 14:05

Choose a tag to compare

Minimum Symfony version is now 5.4 and PHP version 8.1.

Full Changelog: v4.0.0...v4.1.0

v4.0.0

03 Feb 13:22
4f988d0

Choose a tag to compare

What's Changed

  • [BC] remove session workaround since it's no longer needed by @FluffyDiscord in #15

When updating to v4, unregister FluffyDiscord\RoadRunnerBundle\Session\WorkerSessionStorageFactory from session storage_factory_id. For example remove these lines from fluffy_discord_road_runner.yaml if you added it there:

framework:
  session:
    # Fix for Symfony not handling sessions properly in worker mode
    storage_factory_id: FluffyDiscord\RoadRunnerBundle\Session\WorkerSessionStorageFactory

You should check out this section about Symfony Forms.

Full Changelog: v3.2.0...v4.0.0

v3.2.0

28 Jan 21:24
3a3b52e

Choose a tag to compare

What's Changed

  • secure cookie is no longer ignored in WorkerSessionFactory by @FluffyDiscord in #14

Full Changelog: v3.1.0...v3.2.0

v3.1.0

17 Dec 12:13
2eaf086

Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.1.0

v3.0.1

10 Dec 07:52

Choose a tag to compare

Full Changelog: v3.0.0...v3.0.1