Added NODELAY option to both server and client

This commit is contained in:
ftc
2023-03-14 23:17:02 +03:00
parent 0a83c1a447
commit 9bf8c97ebf
7 changed files with 45 additions and 1 deletions
+2 -1
View File
@@ -36,9 +36,10 @@ function testSocket($amount, $reconnect, $size)
$m = makeRequest($size);
logTime("begin sending");
$s->sendMessage($m);
$ts = hrtime(true);
logTime("sent, receiving");
$r = $s->receiveMessage();
logTime("received");
logTime("received, time = ".sprintf("%.3f", (hrtime(true) - $ts) / 1000000.0));
$current++;
if ($current >= $reconnect)
{