From 2275cd9319324061a9614f20d9ec92d5eac929c2 Mon Sep 17 00:00:00 2001 From: "a.stecher" Date: Thu, 23 May 2024 17:55:44 +0200 Subject: [PATCH 1/2] Finishes garbage collection before restarting the worker process. --- bin/frankenphp-worker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/frankenphp-worker.php b/bin/frankenphp-worker.php index 26f95451c..9482ad329 100644 --- a/bin/frankenphp-worker.php +++ b/bin/frankenphp-worker.php @@ -76,4 +76,5 @@ } } finally { $worker?->terminate(); + gc_collect_cycles(); } From b96571b3cd73329d700a00a49d25bcd425cf5eeb Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 23 May 2024 13:37:37 -0500 Subject: [PATCH 2/2] Update frankenphp-worker.php --- bin/frankenphp-worker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/frankenphp-worker.php b/bin/frankenphp-worker.php index 9482ad329..e3a342366 100644 --- a/bin/frankenphp-worker.php +++ b/bin/frankenphp-worker.php @@ -76,5 +76,6 @@ } } finally { $worker?->terminate(); + gc_collect_cycles(); }