Skip to content

Commit 5ff730e

Browse files
author
Josiah Ritchie
committed
Test multiple connections to a port with testConnectionLimit.sh
1 parent 650796e commit 5ff730e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

testConnectionLimit.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Syntax: scriptname hostname port
3+
4+
ip=$1
5+
port=$2
6+
7+
for i in {1..100}
8+
do
9+
# do nothing just connect and exit
10+
echo "exit" | nc ${ip} ${port};
11+
done

0 commit comments

Comments
 (0)