From: Dmitry Stogov Date: Tue, 22 Sep 2009 10:15:10 +0000 (+0000) Subject: Fixed test (it failed from time to time because of very small timeouts) X-Git-Tag: php-5.2.12RC1~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c51b3f11a5ab46d553071f18e02dd211f4e1dd0;p=php Fixed test (it failed from time to time because of very small timeouts) --- 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); }