Skip to content

Commit

Permalink
refactor: unset $context to avoid memory exhaustion (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbidad committed Sep 24, 2024
1 parent 1d67194 commit 3726a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function handle(Request $request, RequestContext $context): void
// After the request handling process has completed we will unset some variables
// plus reset the current application state back to its original state before
// it was cloned. Then we will be ready for the next worker iteration loop.
unset($gateway, $sandbox, $request, $response, $octaneResponse, $output);
unset($gateway, $sandbox, $context, $request, $response, $octaneResponse, $output);

CurrentApplication::set($this->app);
}
Expand Down

0 comments on commit 3726a71

Please sign in to comment.