Skip to content

Commit 5f60753

Browse files
committed
Added gc_collect_cycles()
1 parent 1e4093a commit 5f60753

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/swoole/SwooleServerDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ protected function bindHttpEvent() {
9494
$AsyncBridge->processRequest($SwooleAsyncRequest, $SwooleAsyncResponse);
9595
// $pool1->return($pdo);
9696
$response->end();
97+
98+
gc_collect_cycles(); // Collect garbage to free memory
9799
});
98100
}
99101

0 commit comments

Comments
 (0)