diff options
author | Valery Piashchynski <[email protected]> | 2021-02-24 00:12:05 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-02-24 00:12:05 +0300 |
commit | e684ac16035bed9a4c09677b0db3b33477955dc9 (patch) | |
tree | 0d226eb8ad9730ede1f7cd80b5f7b44d1fb23b0a /tests/exec_ttl.php | |
parent | 18a097292a567fccdd02304ff236bf78d769965d (diff) |
Fix pool behavior, update tests
Diffstat (limited to 'tests/exec_ttl.php')
-rw-r--r-- | tests/exec_ttl.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/exec_ttl.php b/tests/exec_ttl.php new file mode 100644 index 00000000..fb5c9df2 --- /dev/null +++ b/tests/exec_ttl.php @@ -0,0 +1,15 @@ +<?php + +declare(strict_types=1); + +use Spiral\Goridge\StreamRelay; +use Spiral\RoadRunner\Worker as RoadRunner; + +require __DIR__ . "/vendor/autoload.php"; + +$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT)); + +while($rr->waitPayload()){ + sleep(3); + $rr->respond(new \Spiral\RoadRunner\Payload("")); +} |