mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Make test for bug #72333 a bit more reliable
This commit is contained in:
parent
98f4ce9363
commit
0c8ad36d92
@ -14,11 +14,8 @@ $serverCode = <<<'CODE'
|
|||||||
$fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
|
$fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context);
|
||||||
phpt_notify();
|
phpt_notify();
|
||||||
$conn = stream_socket_accept($fp);
|
$conn = stream_socket_accept($fp);
|
||||||
|
fread($conn, 100000);
|
||||||
for ($i = 0; $i < 5; $i++) {
|
phpt_wait();
|
||||||
fread($conn, 100000);
|
|
||||||
usleep(20000);
|
|
||||||
}
|
|
||||||
CODE;
|
CODE;
|
||||||
|
|
||||||
$clientCode = <<<'CODE'
|
$clientCode = <<<'CODE'
|
||||||
@ -40,9 +37,9 @@ $clientCode = <<<'CODE'
|
|||||||
$buf = substr($buf, $total);
|
$buf = substr($buf, $total);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$str1 = str_repeat("a", 3000000);
|
||||||
$str1 = str_repeat("a", 5000000);
|
|
||||||
blocking_fwrite($fp, $str1);
|
blocking_fwrite($fp, $str1);
|
||||||
|
phpt_notify();
|
||||||
echo "done";
|
echo "done";
|
||||||
CODE;
|
CODE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user