We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ced65 commit 2139cc9Copy full SHA for 2139cc9
tests/SocketTest.php
@@ -75,6 +75,18 @@ public function testClientSendAfterEndIsNoop(Socket $client)
75
$this->loop->run();
76
}
77
78
+ public function testClientSendHugeWillFail()
79
+ {
80
+ $promise = $this->factory->createClient('127.0.0.1', 12345);
81
+ $client = $this->getValueFromResolvedPromise($promise);
82
+
83
+ $client->send(str_repeat(1, 1024 * 1024));
84
+ $client->on('error', $this->expectCallableOnce());
85
+ $client->end();
86
87
+ $this->loop->run();
88
+ }
89
90
public function testCreatePair()
91
{
92
$promise = $this->factory->createServer(0, '127.0.0.1');
0 commit comments