Remove unnecessary Socket::close()
Now socket close will cancel all IO operations immediately, but write operations is in progress. We can just rely on ref-count, do not close socket manually unless we have to.
@@ -61,7 +61,6 @@ for ($c = 0; $c < TEST_MAX_CONCURRENCY; $c++) {
$packet = $client->readString(TEST_MAX_LENGTH);
Assert::same($packet, $randoms[$n]);
}
- $client->close();
});
for ($n = 0; $n < TEST_MAX_REQUESTS; $n++) {
$client->sendString($randoms[$n]);
