mirror of https://github.com/moparisthebest/curl
check for the HTTPS server in a manner similar to how we check for the HTTP
server
This commit is contained in:
parent
61133545f6
commit
4a6cc54eb5
|
@ -477,20 +477,24 @@ sub runhttpsserver {
|
||||||
if($verbose) {
|
if($verbose) {
|
||||||
print "CMD: $cmd\n";
|
print "CMD: $cmd\n";
|
||||||
}
|
}
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
for(1 .. 30) {
|
for(1 .. 30) {
|
||||||
$pid=checkserver($HTTPSPIDFILE);
|
# verify that our HTTPS server is up and running:
|
||||||
|
$cmd="$CURL --silent --insecure \"https://$HOSTIP:$HTTPSPORT/verifiedserver\" 2>/dev/null";
|
||||||
if($pid <= 0) {
|
if($verbose) {
|
||||||
if($verbose) {
|
print "CMD: $cmd\n";
|
||||||
print STDERR "RUN: waiting one sec for HTTPS server\n";
|
|
||||||
}
|
|
||||||
sleep(1);
|
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
|
my $data=`$cmd`;
|
||||||
|
|
||||||
|
if ( $data =~ /WE ROOLZ: (\d+)/ ) {
|
||||||
|
$pid = 0+$1;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
if($verbose) {
|
||||||
|
print STDERR "RUN: waiting one sec for HTTPS server\n";
|
||||||
|
}
|
||||||
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $pid;
|
return $pid;
|
||||||
|
|
Loading…
Reference in New Issue