We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ada034 commit 72fb482Copy full SHA for 72fb482
tests/Integration/TCPServerTest.php
@@ -40,8 +40,11 @@ public function testTCPAdapterGetConnectionAndClose(): void
40
41
Coroutine::create(function () use ($backend): void {
42
$backend->handle(function (Coroutine\Server\Connection $connection): void {
43
- $data = $connection->recv();
44
- if ($data !== '' && $data !== false) {
+ while (true) {
+ $data = $connection->recv();
45
+ if (! \is_string($data) || $data === '') {
46
+ break;
47
+ }
48
$connection->send($data);
49
}
50
$connection->close();
0 commit comments