#!/usr/bin/php
$timeout) {
$socketTimeout = $timeout;
}
$stopTime = time() + $timeout;
do {
$sock = @fsockopen($host, $port, $errno, $errstr, $socketTimeout);
if ($sock !== false) {
fclose($sock);
fwrite(STDOUT, "\n");
exit(0);
}
sleep(1);
fwrite(STDOUT, '.');
} while (time() < $stopTime);
fwrite(STDOUT, "\n");
exit(1);
age-merged
Nextcloud server, a safe home for all your data: https://github.com/nextcloud/server | www-data |
blob: f0016c7c4dbcf42c4256a3dfc5b72cfb15252171 (
plain)