diff options
author | Valery Piashchynski <[email protected]> | 2020-12-15 14:28:30 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-15 14:28:30 +0300 |
commit | 21b51367e27f5a1b166459a115e4655d07a5d832 (patch) | |
tree | c3257a2ac38f0688e78ca2c9eeb160fb7a84c55d /plugins/server/tests/socket.php | |
parent | 08f073f3bdc1288db68235c098c3a2109c6e7667 (diff) | |
parent | d39a0735fe21d21c5aae20c4780458433a42250a (diff) |
Merge branch '2.0' into plugin/reloader
# Conflicts:
# go.mod
# sync_worker.go
Diffstat (limited to 'plugins/server/tests/socket.php')
-rw-r--r-- | plugins/server/tests/socket.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/server/tests/socket.php b/plugins/server/tests/socket.php index 143c3ce4..1b76481a 100644 --- a/plugins/server/tests/socket.php +++ b/plugins/server/tests/socket.php @@ -6,7 +6,7 @@ use Spiral\Goridge; use Spiral\RoadRunner; -require dirname(__DIR__) . "/../../vendor_php/autoload.php"; +require dirname(__DIR__) . "/../../tests/vendor/autoload.php"; $relay = new Goridge\SocketRelay( "unix.sock", @@ -16,9 +16,9 @@ $relay = new Goridge\SocketRelay( $rr = new RoadRunner\Worker($relay); -while ($in = $rr->receive($ctx)) { +while ($in = $rr->waitPayload()) { try { - $rr->send((string)$in); + $rr->send((string)$in->body); } catch (\Throwable $e) { $rr->error((string)$e); } |