mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
fix infinite loop in the test
This commit is contained in:
parent
b47136d332
commit
9c97c26832
@ -51,7 +51,7 @@ function ssl_async_client($port) {
|
||||
$socket = stream_socket_client($host, $errno, $errstr, 10, $flags);
|
||||
stream_set_blocking($socket, 0);
|
||||
|
||||
while ($data) {
|
||||
while ($socket && $data) {
|
||||
$wrote = fwrite($socket, $data, strlen($data));
|
||||
$data = substr($data, $wrote);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user