diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-02-28 17:28:07 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-02-28 17:28:07 +0100 |
commit | 9be853a2c8d0fd7fdc415200af57493ad5a00feb (patch) | |
tree | e7bd63bd8dc7540488be93d0c3a84b74eeb32831 /tests/tcpflood.c | |
parent | 34cf945d034cbd3ef2331f378842bb21478ce7be (diff) | |
download | rsyslog-9be853a2c8d0fd7fdc415200af57493ad5a00feb.tar.gz rsyslog-9be853a2c8d0fd7fdc415200af57493ad5a00feb.tar.xz rsyslog-9be853a2c8d0fd7fdc415200af57493ad5a00feb.zip |
added new tls-based test to testbench
Diffstat (limited to 'tests/tcpflood.c')
-rw-r--r-- | tests/tcpflood.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c index b4f097f9..59c63d23 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -334,7 +334,7 @@ void closeConnections(void) * of constructing test messages. -- rgerhards, 2010-03-31 */ static inline void -genMsg(char *buf, size_t maxBuf, int *pLenBuf) +genMsg(char *buf, size_t maxBuf, int *pLenBuf, struct instdata *inst) { int edLen; /* actual extra data length to use */ char extraData[MAX_EXTRADATA_LEN + 1]; @@ -377,6 +377,7 @@ genMsg(char *buf, size_t maxBuf, int *pLenBuf) /* use fixed message format from command line */ *pLenBuf = snprintf(buf, maxBuf, "%s\n", MsgToSend); } + ++inst->numSent; finalize_it: /*EMPTY to keep the compiler happy */; } @@ -425,7 +426,7 @@ int sendMessages(struct instdata *inst) socknum = rnd % numConnections; } } - genMsg(buf, sizeof(buf), &lenBuf); /* generate the message to send according to params */ + genMsg(buf, sizeof(buf), &lenBuf, inst); /* generate the message to send according to params */ if(transport == TP_TCP) { if(sockArray[socknum] == -1) { /* connection was dropped, need to re-establish */ |