summaryrefslogtreecommitdiff
path: root/ext/openssl/tests
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2009-09-22 10:15:10 +0000
committerDmitry Stogov <dmitry@php.net>2009-09-22 10:15:10 +0000
commitbb81ef5d71131d5a9ccc3d6fb89b841ea43d7baa (patch)
tree48ab98a9974a9533ed6222e7d6b9b444ed70c328 /ext/openssl/tests
parent4cce432eebde55ae45359521233a2bd439cfe0e8 (diff)
downloadphp-git-bb81ef5d71131d5a9ccc3d6fb89b841ea43d7baa.tar.gz
Fixed test (it failed from time to time because of very small timeouts)
Diffstat (limited to 'ext/openssl/tests')
-rw-r--r--ext/openssl/tests/bug48182.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/tests/bug48182.phpt b/ext/openssl/tests/bug48182.phpt
index 0af04e1a95..7471c4c5df 100644
--- a/ext/openssl/tests/bug48182.phpt
+++ b/ext/openssl/tests/bug48182.phpt
@@ -28,12 +28,12 @@ function ssl_server($port) {
$r = array($link);
$w = array();
$e = array();
- if (stream_select($r, $w, $e, 0, 1000) != 0)
+ if (stream_select($r, $w, $e, 1, 0) != 0)
$data .= fread($link, 8192);
$r = array();
$w = array($link);
- if (stream_select($r, $w, $e, 0, 1000) != 0)
+ if (stream_select($r, $w, $e, 1, 0) != 0)
$wrote = fwrite($link, $data, strlen($data));
// close stuff
@@ -59,7 +59,7 @@ function ssl_async_client($port) {
$r = array($socket);
$w = array();
$e = array();
- if (stream_select($r, $w, $e, 0, 10) != 0)
+ if (stream_select($r, $w, $e, 1, 0) != 0)
{
$data .= fread($socket, 1024);
}