summaryrefslogtreecommitdiff
path: root/tests/stop.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stop.php')
-rw-r--r--tests/stop.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/stop.php b/tests/stop.php
deleted file mode 100644
index caa485d6..00000000
--- a/tests/stop.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-/**
- * @var Goridge\RelayInterface $relay
- */
-
-use Spiral\Goridge;
-use Spiral\RoadRunner;
-
-$rr = new RoadRunner\Worker($relay);
-
-$used = false;
-while ($in = $rr->receive($ctx)) {
- try {
- if ($used) {
- // kill on second attempt
- $rr->stop();
- continue;
- }
-
- $used = true;
- $rr->send((string)getmypid());
- } catch (\Throwable $e) {
- $rr->error((string)$e);
- }
-} \ No newline at end of file