text stringlengths 0 834k |
|---|
die ""option -c value must be a number but found "", |
""'$conns_num'.\n""; |
} |
} |
if (defined $errlog_level) { |
if ($errlog_level !~ /^[a-z]+$/) { |
die ""bad --errlog-level option value: $errlog_level""; |
} |
} |
if (@ns) { |
for my $v (@ns) { |
if ($v !~ /^ (?: \d{1,3} (?: \. \d{1,3} ){3} |
| \[ [0-9a-fA-F:]+ \] ) $/x) |
{ |
die ""ERROR: Invalid --ns option value: $v\n"", |
"" (expecting an IP address)\n""; |
} |
} |
} |
if (@shdicts) { |
for my $v (@shdicts) { |
if ($v !~ /^ [_a-z]+ \s+ \d+ (?i) [km]? $/x) { |
die ""ERROR: invalid --shdict option value: $v\n"", |
"" (expecting NAME SIZE)\n""; |
} |
$lua_shared_dicts .= ""lua_shared_dict $v;\n""; |
} |
} |
} |
if (defined $jit_dumper) { |
if ($jit_dumper eq 'v') { |
unshift @src_a, 'require ""jit.v"".on()'; |
} elsif ($jit_dumper eq 'dump') { |
unshift @src_a, 'require ""jit.dump"".on()'; |
} elsif ($jit_dumper eq 'off') { |
unshift @src_a, 'require ""jit"".off()'; |
} else { |
warn ""ERROR: unknown -j option value: $jit_dumper.\n""; |
usage(1); |
} |
} |
#warn join "";"", @src_a; |
my $src; |
if (@src_a) { |
$src = join '; ', @src_a; |
} |
if (!$nginx_path) { |
require FindBin; |
require Config; |
die if !%Config::Config; |
my $ext = $Config::Config{_exe}; |
if (!$ext) { |
if ($^O eq 'msys') { |
$ext = '.exe'; |
} else { |
$ext = ''; |
} |
} |
if ($is_win32) { |
$nginx_path = File::Spec->catfile($FindBin::RealBin, "".."", ""nginx"", |
""sbin"", ""nginx$ext""); |
} else { |
$nginx_path = ""$FindBin::RealBin/../nginx/sbin/nginx$ext""; |
} |
if (!-f $nginx_path) { |
if ($is_win32) { |
$nginx_path = File::Spec->catfile($FindBin::RealBin, ""nginx$ext""); |
} else { |
$nginx_path = ""$FindBin::RealBin/nginx$ext""; |
} |
if (!-f $nginx_path) { |
$nginx_path = ""nginx""; # find in PATH |
} |
} |
} |
#warn $nginx_path; |
if ($version) { |
warn ""resty $VERSION\n""; |
my $cmd = ""$nginx_path -V""; |
exec $cmd or die ""Failed to run command \""$cmd\"": $!\n""; |
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.