Skip to content

Commit 3726a71

Browse files
authored
refactor: unset $context to avoid memory exhaustion (#953)
1 parent 1d67194 commit 3726a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function handle(Request $request, RequestContext $context): void
113113
// After the request handling process has completed we will unset some variables
114114
// plus reset the current application state back to its original state before
115115
// it was cloned. Then we will be ready for the next worker iteration loop.
116-
unset($gateway, $sandbox, $request, $response, $octaneResponse, $output);
116+
unset($gateway, $sandbox, $context, $request, $response, $octaneResponse, $output);
117117

118118
CurrentApplication::set($this->app);
119119
}

0 commit comments

Comments
 (0)