1
# Test imtcp with many dropping connections
2
# added 2010-08-10 by Rgerhards
4
# This file is part of the rsyslog project, released under GPLv3
5
echo ====================================================================================
6
echo TEST: \[imtcp_conndrop.sh\]: test imtcp with random connection drops
7
cat rsyslog.action.1.include
8
source $srcdir/diag.sh init
9
source $srcdir/diag.sh startup imptcp_large.conf
10
# 100 byte messages to gain more practical data use
11
source $srcdir/diag.sh tcpflood -c20 -m50000 -r -d100 -P129 -D
12
sleep 4 # due to large messages, we need this time for the tcp receiver to settle...
13
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
14
source $srcdir/diag.sh wait-shutdown # and wait for it to terminate
15
source $srcdir/diag.sh seq-check 0 49999 -E
16
source $srcdir/diag.sh exit