1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

Push c_ins so that they aren't automatically closed.

This commit is contained in:
david
2013-08-16 08:03:22 +00:00
parent 48058be247
commit 343e09c2fa

View File

@@ -305,6 +305,7 @@ sub max_conns_test {
my $count = shift;
my @client_pids;
my @client_outs;
my @client_ins;
($s_pid, $s_out, $s_in) = ncat_server(@$server_args, ("--max-conns", $count));
test $desc, sub {
@@ -316,6 +317,7 @@ sub max_conns_test {
($c_pid, $c_out, $c_in) = ncat_client(@$client_args);
push @client_pids, $c_pid;
push @client_outs, $c_out;
push @client_ins, $c_in;
syswrite($c_in, "abc\n");
$resp = timeout_read($s_out, 2.0);
if (!$resp) {
@@ -330,6 +332,7 @@ sub max_conns_test {
($c_pid, $c_out, $c_in) = ncat_client(@$client_args);
push @client_pids, $c_pid;
push @client_outs, $c_out;
push @client_ins, $c_in;
syswrite($c_in, "abc\n");
$resp = timeout_read($s_out, 2.0);
if (!$resp) {
@@ -352,6 +355,7 @@ sub max_conns_test {
($c_pid, $c_out, $c_in) = ncat_client(@$client_args);
push @client_pids, $c_pid;
push @client_outs, $c_out;
push @client_ins, $c_in;
syswrite($c_in, "abc\n");
$resp = timeout_read($s_out, 2.0);
if (!$resp) {