summaryrefslogtreecommitdiffstats
path: root/tests/tcpflood.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcpflood.c')
-rw-r--r--tests/tcpflood.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c
index 3020f389..0efbef4e 100644
--- a/tests/tcpflood.c
+++ b/tests/tcpflood.c
@@ -5,6 +5,7 @@
* -t target address (default 127.0.0.1)
* -p target port (default 13514)
* -n number of target ports (targets are in range -p..(-p+-n-1)
+ * Note -c must also be set to at LEAST the number of -n!
* -c number of connections (default 1)
* -m number of messages to send (connection is random)
* -i initial message number (optional)
@@ -451,6 +452,8 @@ int main(int argc, char *argv[])
exit(1);
}
+ closeConnections();
+
if(nConnDrops > 0)
printf("-D option initiated %ld connection closures\n", nConnDrops);
printf("End of tcpflood Run\n");