diff options
author | Valery Piashchynski <[email protected]> | 2021-07-14 17:22:49 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 17:22:49 +0300 |
commit | cea3f6ab9faf80637dd23f6b1ca57c0b3309d98e (patch) | |
tree | c70b7058e1682e93e98c9cf006d3584351d73d3b /tests | |
parent | 9d018f259b45be9268ae85e089a07f25de894f41 (diff) | |
parent | cb28ad07fadb78e2e77e485cd9b96abeddbf3a5c (diff) |
#749 bug(supervisor, ttl): worker gets into the inconsistent state after TTL was reached
#749 bug(supervisor, ttl): worker gets into the inconsistent state after TTL was reached
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sleep-ttl.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/sleep-ttl.php b/tests/sleep-ttl.php new file mode 100644 index 00000000..2230e615 --- /dev/null +++ b/tests/sleep-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(10); + $rr->respond(new \Spiral\RoadRunner\Payload("hello world")); +} |