2 Commits

Author SHA1 Message Date
Rainer Gerhards
37de8f66a4
testbench: make test more reliable
There was a race between tcpflood and rsyslog in imptpc_maxsessions.sh.
We now use the new -A tcpflood option to make the timing more
predictable, hopefully fixing test flakiness.

Note: if that does not help, we need to introduce a wait on the number
of error messages and maybe a delay before tcpflood termination. The
theory behind the latter is that rsyslog possibly does not fully
iniaitlize session which are quickly aborted before rsyslog receives
the related OS notification! We just record this info in case we
need it and are positive that this change will fix the situation.
2023-07-28 18:44:22 +02:00
Alfred Perlstein
6c50426dbf Add max sessions for imptcp.c similar to imtcp.c
The max is per-instance, not global across all instances.

There is also a bugfix where if epoll failed I think we could leave a
session linked in the list of sessions, this code unlinks it.
2020-08-11 19:06:37 -07:00