diff options
author | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
commit | d199ef71b9644afbbba064c317cd0991be1c2443 (patch) | |
tree | f777eb90f10ca0e7dbc46227fc76c61f02111946 /tests/memleak.php | |
parent | 91cf918b30938129609323ded53e190385e019a6 (diff) |
Supervised pool
Diffstat (limited to 'tests/memleak.php')
-rw-r--r-- | tests/memleak.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/memleak.php b/tests/memleak.php new file mode 100644 index 00000000..b78a76c0 --- /dev/null +++ b/tests/memleak.php @@ -0,0 +1,15 @@ +<?php + +declare(strict_types=1); + +use Spiral\Goridge\StreamRelay; +use Spiral\RoadRunner\Worker as RoadRunner; + +require dirname(__DIR__) . "/vendor_php/autoload.php"; + +$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT)); +$mem = ''; +while($rr->receive($ctx)){ + $mem .= str_repeat(" ", 1024*1024); + $rr->send(""); +}
\ No newline at end of file |