14293 Commits

Author SHA1 Message Date
Rainer Gerhards
4ab8ffa561
Merge pull request #4042 from miztake/prototype
Fix race condition related to libfastjson when using DA queue
2020-01-12 12:58:48 +01:00
Rainer Gerhards
f12c54cb2c
Merge pull request #4107 from rgerhards/i4098
omfwd: parameter streamdriver.permitexpiredcerts did not work
2020-01-12 12:55:08 +01:00
Rainer Gerhards
b244842039
Merge pull request #4108 from tblume/build-with-gcc-flag-fno-common
satisfy-gcc-flag-fno-common
2020-01-12 12:53:29 +01:00
Rainer Gerhards
570734e971
Merge pull request #4114 from rgerhards/fix-race
core/network: fix cosmetic race during socket initialization
2020-01-12 11:52:55 +01:00
Rainer Gerhards
e7b5bb378f
core/network: fix cosmetic race during socket initialization
TSAN correctly detects a race during socket initialization, but this
is harmless as at most it leads to "a bit" of extra code execution.
Usually, it does not happen. This commit works-around the issue so
that TSAN notices we know what we are doing.

For details see actual patch.
2020-01-12 11:13:00 +01:00
Rainer Gerhards
72f18a2a79
Merge pull request #4105 from rgerhards/tb-robust4
testbench: modernize some tests
2020-01-12 10:28:30 +01:00
Rainer Gerhards
8e4a6f4836
testbench: modernize some tests
This also makes port use more reliable.
2020-01-11 16:30:26 +01:00
Rainer Gerhards
80b3fc65d5
omfwd: parameter streamdriver.permitexpiredcerts did not work
This commit fixes the issue and adds tests to ensure the parameter
is understood

closes https://github.com/rsyslog/rsyslog/issues/4098
2020-01-11 16:16:03 +01:00
Rainer Gerhards
6ef3f47158
maintain ChangeLog 2020-01-11 16:05:06 +01:00
Rainer Gerhards
52c30f5ca5
Merge pull request #4109 from taavi-valjaots/dynafile-async-ksimodule-bugfix
Dynafile + async KSI module bugfix
2020-01-11 16:03:27 +01:00
Rainer Gerhards
fa77d6d30d
Merge pull request #4110 from rgerhards/tb-robust5
testbench: modernize some tests
2020-01-11 16:02:49 +01:00
Rainer Gerhards
3ca969fae8
Merge pull request #4106 from rgerhards/tb-ci-runner-test
CI: add script to do a full CI run
2020-01-11 16:01:38 +01:00
Rainer Gerhards
0845ff8e02
CI: add script to do a full CI run
The core ID is to use this script together with pretty generic
buildbot workers. This provides a simple way to load-balance
across the worker pool.
2020-01-11 12:10:48 +01:00
Rainer Gerhards
0004185c48
testbench: modernize some tests
also make more robust against slow testbench machines
2020-01-10 10:52:06 +01:00
taavi.valjaots
5174c8ae6e Bugfix: KSI module + dynafile in asynchronous mode fixed. 2020-01-09 18:08:10 +02:00
Thomas Blume
4cacfc34e8 satisfy-gcc-flag-fno-common
Porting advice for gcc 10:

A common mistake in C is omitting <code>extern</code> when declaring a global
variable in a header file.  If the header is included by several files it
results in multiple definitions of the same variable.  In previous GCC versions
this error is ignored.  GCC 10 defaults to <code>-fno-common</code>, which
means a linker error will now be reported. To fix this, use <code>extern</code>
in header files when declaring global variables, and ensure each global is
defined in exactly one C file. As a workaround, legacy C code can be compiled
with -fcommon.
2020-01-09 11:16:22 +01:00
Rainer Gerhards
5bbf4dc758
Merge pull request #4104 from rgerhards/tb-fix-racy-test
testbench: fix races in old-style tests
2020-01-08 18:03:47 +01:00
Rainer Gerhards
8dbb33cd03
testbench: fix races in old-style tests
these were introduced with commit fcffb063e just recently
2020-01-08 16:07:02 +01:00
Rainer Gerhards
456780f6e3
maintain ChangeLog 2020-01-08 15:53:35 +01:00
Rainer Gerhards
6f74f7e7b4
Merge pull request #4091 from alorbach/pr-issue-4035
ossl tls: Added support to configure certificate verify depth
2020-01-08 15:44:57 +01:00
Rainer Gerhards
52b609869d
Merge pull request #4093 from rgerhards/tb-q-shutdown-to
testbench: increase main msg queue default shutdown timeout
2020-01-08 15:44:33 +01:00
Rainer Gerhards
97ab992f4f
Merge pull request #4103 from rgerhards/imtcp-legacy-listenportfile
imtcp: add legacy directive $inputtcpserverlistenportfile
2020-01-08 15:44:16 +01:00
Rainer Gerhards
9b23d3fb90
Merge pull request #4102 from rgerhards/tb-robuts3
testbench: modernize tests
2020-01-08 12:32:35 +01:00
fcffb063e3 tls: Added support to configure certificate verify depth
Support added in omfwd as instance parameter:
streamdriver.TlsVerifyDepth
Support added in imtcp as module parameter:
streamdriver.TlsVerifyDepth

Can be 2 or higher.

Support added into ossl driver
Support added into gtls driver
Added testcases for both drivers.

Parameter
streamdriver.TlsVerifyDepth

closes: https://github.com/rsyslog/rsyslog/issues/4035
2020-01-08 11:40:14 +01:00
Rainer Gerhards
2377bfa0e7
imtcp: add legacy directive $inputtcpserverlistenportfile
This is added for testbench use - we need it to harden tests that
need to test legacy syntax.

The new directive is NOT intended for users. Thus it is intentionally
NOT DOCUMENTED.
2020-01-08 11:38:20 +01:00
Rainer Gerhards
dffb2bb8f7
testbench: modernize tests
also make them more robust against slow testbench machines
2020-01-08 10:22:29 +01:00
Rainer Gerhards
2c4a621f2a
maintain ChangeLog 2020-01-08 09:25:04 +01:00
Rainer Gerhards
f2560d5229
Merge pull request #4090 from rgerhards/tb-robust2
testbench: harden two tests against slow testbench machines
2020-01-08 09:22:06 +01:00
Rainer Gerhards
73941eaad2
Merge pull request #4094 from rgerhards/tb-timeout
testbench: do not create hanging tool instances
2020-01-08 09:20:52 +01:00
Rainer Gerhards
77ee19d9b0
testbench: increase main msg queue default shutdown timeout
this is necessary for very slow test environments
2020-01-08 08:53:36 +01:00
Rainer Gerhards
a77b823c3b
Merge pull request #4095 from dago/solaris
Solaris
2020-01-07 19:20:21 +01:00
Rainer Gerhards
1af7a648fc
omprog: add one forgotten fix 2020-01-07 19:15:43 +01:00
Rainer Gerhards
f179a354c7
Merge pull request #4100 from rgerhards/solaris-omprog
omprog bugfix: unclean data type conversions
2020-01-07 19:10:03 +01:00
Rainer Gerhards
e320e20039
omprog bugfix: unclean data type conversions
breaks compilation e.g. on Solaris 10 with gcc
2020-01-07 18:59:46 +01:00
Rainer Gerhards
a03855765e
Merge pull request #4096 from rgerhards/tb-kafkacache
testbench: use local kafka download cache if present
2020-01-07 16:33:40 +01:00
Rainer Gerhards
9325f3c493
maintain ChangeLog 2020-01-07 16:15:22 +01:00
Dagobert Michelsen
d917295065 Only define LOG_CRON if it is not already defined, needed on Solaris 10 2020-01-07 16:08:48 +01:00
Rainer Gerhards
46f565e579
Merge pull request #4029 from jvymazal/expired_certs_default
Changed default for permitExpiredCerts to "off"
2020-01-07 16:08:41 +01:00
Rainer Gerhards
84db673daa
Merge pull request #4089 from rgerhards/tb-imdocker
testbench: make imdocker tests more robust in regard to timing
2020-01-07 16:01:09 +01:00
Rainer Gerhards
bc71ab0738
testbench: use local kafka download cache if present 2020-01-07 11:13:17 +01:00
Rainer Gerhards
c8461990f6
testbench: do not create hanging tool instances
the omhttp test server hangs indefinitely if tests requiring
it fail. This is relevant if the environment ist not destructed
after CI run (the buildbot CI system does not do this on VMs).

To guard against this, we have added a timeout of 30 minutes to
ensure the tool is terminated.
2020-01-06 17:05:12 +01:00
Dagobert Michelsen
3b05eb02d5 Cast gid to correct type to avoid type error 2020-01-06 14:34:22 +01:00
Dagobert Michelsen
585d7b1a99 Use cast to long for pid_t to avoid type error 2020-01-06 14:34:04 +01:00
Dagobert Michelsen
fc2a32562a Add definition for strndup and do not define and assign at the same time 2020-01-06 14:33:11 +01:00
Dagobert Michelsen
8834ce8e78 Use #ifdef instead of Ã#if 2020-01-06 14:32:23 +01:00
Rainer Gerhards
92e0a75e99
testbench: harden two tests against slow testbench machines 2020-01-06 12:53:00 +01:00
Rainer Gerhards
77180c9b08
testbench: make imdocker tests more robust in regard to timing
some have problems on heavily loaded (CI) machines. This commit solves
that problem.
2020-01-06 12:52:18 +01:00
Rainer Gerhards
ad0390c34c
Merge pull request #4088 from rgerhards/tb-robust
testbench: modernize some tests and make more robust
2020-01-03 14:53:43 +01:00
Rainer Gerhards
8be4e37df6
testbench: modernize some tests and make more robust
slow test machines are now better handled
2020-01-03 11:45:55 +01:00
Rainer Gerhards
654ad0a678
Merge pull request #4084 from rgerhards/tb-cleanup
testbench cleanup: remove debug info
2020-01-02 17:29:30 +01:00