summaryrefslogtreecommitdiff
path: root/tests/sleep.php
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-10-27 15:16:55 +0300
committerValery Piashchynski <[email protected]>2020-10-27 15:16:55 +0300
commitd199ef71b9644afbbba064c317cd0991be1c2443 (patch)
treef777eb90f10ca0e7dbc46227fc76c61f02111946 /tests/sleep.php
parent91cf918b30938129609323ded53e190385e019a6 (diff)
Supervised pool
Diffstat (limited to 'tests/sleep.php')
-rw-r--r--tests/sleep.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/sleep.php b/tests/sleep.php
new file mode 100644
index 00000000..b3ea8235
--- /dev/null
+++ b/tests/sleep.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));
+
+while($rr->receive($ctx)){
+ sleep(3);
+ $rr->send("");
+} \ No newline at end of file