Skip to content

Commit e0ab5c8

Browse files
AlliBalliBabaa.stechertaylorotwell
authored
Finishes garbage collection before restarting the FrankenPHP worker process (#897)
* Finishes garbage collection before restarting the worker process. * Update frankenphp-worker.php --------- Co-authored-by: a.stecher <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 54a34e0 commit e0ab5c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/frankenphp-worker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@
7676
}
7777
} finally {
7878
$worker?->terminate();
79+
80+
gc_collect_cycles();
7981
}

0 commit comments

Comments
 (0)