diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-10 22:43:00 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-10 22:43:00 +0200 |
commit | e1d21ca141706f730067e20958bbdd973672e019 (patch) | |
tree | 62fe65f8e5630ea8487837d701193196bec97282 /tests/manytcp-too-few-tls.sh | |
parent | cca47caf92eaea4ae57cc9b016d9b458157447ce (diff) | |
download | rsyslog-e1d21ca141706f730067e20958bbdd973672e019.tar.gz rsyslog-e1d21ca141706f730067e20958bbdd973672e019.tar.xz rsyslog-e1d21ca141706f730067e20958bbdd973672e019.zip |
bugfix: memory leak in imtcp & subsystems under some circumstances
This leak is tied to error conditions which lead to incorrect cleanup
of some data structures.
Diffstat (limited to 'tests/manytcp-too-few-tls.sh')
-rwxr-xr-x | tests/manytcp-too-few-tls.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/manytcp-too-few-tls.sh b/tests/manytcp-too-few-tls.sh new file mode 100755 index 00000000..d4da5f8b --- /dev/null +++ b/tests/manytcp-too-few-tls.sh @@ -0,0 +1,13 @@ +# test many concurrent tcp connections +echo \[manytcp-too-few-tls.sh\]: test concurrent tcp connections +source $srcdir/diag.sh init +source $srcdir/diag.sh startup-vg manytcp-too-few-tls.conf +# the config file specifies exactly 1100 connections +source $srcdir/diag.sh tcpflood -c1000 -m40000 +# the sleep below is needed to prevent too-early termination of the tcp listener +sleep 1 +source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages +source $srcdir/diag.sh wait-shutdown-vg # we need to wait until rsyslogd is finished! +source $srcdir/diag.sh check-exit-vg +source $srcdir/diag.sh seq-check 0 39999 +source $srcdir/diag.sh exit |