Skip to content
Snippets Groups Projects
Commit e174d374 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Scan for 'stunnel4' before 'stunnel' since debian have them setup this way

and it should break most other systems. The "funny" part is that debian
actually have a 'stunnel' setup to simulate stunnel v3 but it breaks our own
stunnel-version-detect-and-adjust-to-it system.

Added initial support for optionally running servers with fork support.
parent 4edb9350
No related branches found
No related tags found
No related merge requests found
......@@ -93,10 +93,11 @@ my $memdump="$LOGDIR/memdump";
# the path to the script that analyzes the memory debug output file:
my $memanalyze="./memanalyze.pl";
my $stunnel = checkcmd("stunnel");
my $stunnel = checkcmd("stunnel4") || checkcmd("stunnel");
my $valgrind = checkcmd("valgrind");
my $valgrind_logfile="--logfile";
my $start;
my $forkserver=0;
my $valgrind_tool;
if($valgrind) {
......@@ -531,6 +532,7 @@ sub runhttpserver {
my $port = $HTTPPORT;
my $ip = $HOSTIP;
my $nameext;
my $fork = $forkserver?"--fork":"";
if($ipv6) {
# if IPv6, use a different setup
......@@ -552,7 +554,7 @@ sub runhttpserver {
$flag .= "-d \"$dir\" ";
}
my $cmd="$perl $srcdir/httpserver.pl -p $pidfile $flag $port $ipv6";
my $cmd="$perl $srcdir/httpserver.pl -p $pidfile $fork$flag $port $ipv6";
my ($httppid, $pid2) =
startnew($cmd, $pidfile); # start the server in a new process
......@@ -1901,6 +1903,7 @@ sub startservers {
}
else {
warn "we don't support a server for $what";
return "no server for $what";
}
}
return 0;
......@@ -1957,6 +1960,12 @@ do {
# have the servers display protocol output
$debugprotocol=1;
}
elsif ($ARGV[0] eq "-f") {
# run fork-servers, which makes the server fork for all new
# connections This is NOT what you wanna do without knowing exactly
# why and for what
$forkserver=1;
}
elsif ($ARGV[0] eq "-g") {
# run this test with gdb
$gdbthis=1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment