Skip to content

Commit

Permalink
Make test for bug #72333 a bit more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Mar 16, 2017
1 parent 98f4ce9 commit 0c8ad36
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ext/openssl/tests/bug72333.phpt
Expand Up @@ -14,11 +14,8 @@ $serverCode = <<<'CODE'
$fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
phpt_notify();
$conn = stream_socket_accept($fp);
for ($i = 0; $i < 5; $i++) {
fread($conn, 100000);
usleep(20000);
}
fread($conn, 100000);
phpt_wait();
CODE;

$clientCode = <<<'CODE'
Expand All @@ -40,9 +37,9 @@ $clientCode = <<<'CODE'
$buf = substr($buf, $total);
}
}
$str1 = str_repeat("a", 5000000);
$str1 = str_repeat("a", 3000000);
blocking_fwrite($fp, $str1);
phpt_notify();
echo "done";
CODE;

Expand Down

0 comments on commit 0c8ad36

Please sign in to comment.