Skip to content

Commit

Permalink
Finishes garbage collection before restarting the FrankenPHP worker p…
Browse files Browse the repository at this point in the history
…rocess (#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]>
  • Loading branch information
3 people authored May 24, 2024
1 parent 54a34e0 commit e0ab5c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/frankenphp-worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@
}
} finally {
$worker?->terminate();

gc_collect_cycles();
}

0 comments on commit e0ab5c8

Please sign in to comment.