com php-src: Make test for bug #72333 a bit more reliable: ext/openssl/tests/bug72333.phpt
| From: | Jakub Zelenka | Date: | Thu, 16 Mar 2017 18:11:56 +0000 |
| Subject: | com php-src: Make test for bug #72333 a bit more reliable: ext/openssl/tests/bug72333.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97338@lists.php.net to get a copy of this message | ||
Commit: 0c8ad36d924c6ba208eefc02ae09d84cbd683959
Author: Jakub Zelenka <bukka@php.net> Thu, 16 Mar 2017 18:11:56 +0000
Parents: 98f4ce9363b013fbaaa9f417e5bf276f5cbe7017
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0c8ad36d924c6ba208eefc02ae09d84cbd683959
Log:
Make test for bug #72333 a bit more reliable
Bugs:
https://bugs.php.net/72333
Changed paths:
M ext/openssl/tests/bug72333.phpt
Diff:
diff --git a/ext/openssl/tests/bug72333.phpt b/ext/openssl/tests/bug72333.phpt
index 466157b..850f18b 100644
--- a/ext/openssl/tests/bug72333.phpt
+++ b/ext/openssl/tests/bug72333.phpt
@@ -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'
@@ -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;