2718 Commits

Author SHA1 Message Date
Rainer Gerhards
3885cb1e25 enhanced tcpflood to run multithreaded 2010-12-18 18:41:50 +01:00
Rainer Gerhards
bcc3b2aef7 Merge branch 'v5-devel'
Conflicts:
	ChangeLog
	action.c
	plugins/imudp/imudp.c
	runtime/glbl.c
2010-12-17 13:20:55 +01:00
Rainer Gerhards
68c13f3f6a Merge branch 'v4-devel' into v5-devel
Conflicts:
	ChangeLog
	configure.ac
	doc/imfile.html
	doc/manual.html
	plugins/imudp/imudp.c
	runtime/msg.h
	tools/syslogd.c
2010-12-17 12:39:59 +01:00
Rainer Gerhards
699d0d933a added $LocalHostName config directive & some bugfixing
- added $LocalHostName config directive
- bugfix: local hostname was pulled too-early, so that some config
  directives (namely FQDN settings) did not have any effect
2010-12-16 15:29:20 +01:00
Rainer Gerhards
1cd51a5d5a further improved tcpflood testing tool
added capability to wait n usecs between batches of messages
2010-12-13 10:05:26 +01:00
Rainer Gerhards
8d917d0600 added some more options to new test tool 2010-12-10 14:29:19 +01:00
Rainer Gerhards
842ac494e4 added new testing tool 2010-12-10 12:35:31 +01:00
Rainer Gerhards
56f0afc73d added support for UDP to tcpflood testing tool 2010-12-08 15:18:02 +01:00
Rainer Gerhards
b16027c880 improved tcpflood tool to gather stats data for performance testing 2010-12-08 14:27:23 +01:00
Rainer Gerhards
6e701ca1b6 improved tcpflood tool 2010-12-07 12:34:24 +01:00
Luis Fernando Muñoz Mejías
0b18c17b28 Fix a potential missing '\0' on too long strings.
By implementing a trivial strlcpy it's much easier to detect string
truncations and react to them. This also gives a noticeable speedup in
buffer handling (can be HUGE), since strlcpy() doesn't clear all the
buffer entry before writing data.

Converted all uses of strncpy() into strlcpy().

Also, we don't need to check for some null pointers, as there are no
malloc-like operations in the doAction loop.
2010-11-30 16:05:23 +01:00
Rainer Gerhards
44300ddcb2 Merge branch 'v5-beta' into v5-devel
Conflicts:
	ChangeLog
	configure.ac
	doc/imfile.html
	plugins/imfile/imfile.c
	runtime/rsyslog.h
2010-11-25 17:43:51 +01:00
Rainer Gerhards
91cf297043 added forgotten testcase files 2010-11-25 14:29:02 +01:00
Rainer Gerhards
c470879eff bugfix: testbench failed if imptcp was not enabled 2010-11-05 12:56:07 +01:00
Rainer Gerhards
aa0701b100 Merge branch 'v5-stable' into v5-devel
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
2010-10-22 20:18:58 +02:00
Rainer Gerhards
9d98af3407 Merge branch 'v4-stable' into v4-devel 2010-10-22 14:28:53 +02:00
Rainer Gerhards
7cdc7cbaa0 better error messages in testbench 2010-10-22 14:28:31 +02:00
Rainer Gerhards
0972943f52 fixed testbench compile problem on Solaris 2010-10-19 11:17:07 +02:00
Rainer Gerhards
2c9ca3fc9a yet another forgotten testbench file 2010-10-22 14:38:52 +02:00
Rainer Gerhards
73e4b2edc8 added forgotten testbench file 2010-10-22 14:31:53 +02:00
Rainer Gerhards
cb65e72f1e Merge branch 'v4-stable' into v5-stable 2010-10-22 14:29:04 +02:00
Rainer Gerhards
5d8b1846ec Merge branch 'v4-devel' into v5-beta
Conflicts:
	Makefile.am
	tests/tcpflood.c
2010-10-15 08:06:40 -07:00
Rainer Gerhards
33888b84e7 imuxsock: indicate when rate limiting begins, include pid in rl messages
also improved test tool
2010-09-29 14:31:44 +02:00
Rainer Gerhards
829a446c9f improved imuxsock doc & added small testing tool permanently 2010-09-29 12:44:04 +02:00
Rainer Gerhards
054d2ccdd6 imuxsock: added per-socket hash tables/rate limiters & severity filter
rate limiting now applies only to messages with a given severity or above. By
default, emergency messages are NOT rate-limited.
2010-09-28 17:26:28 +02:00
Rainer Gerhards
00fc38c96f Merge branch 'v4-devel' into v5-devel 2010-08-11 15:09:08 +02:00
Rainer Gerhards
053656420e Merge branch 'v4-stable-imptcp' into v4-devel 2010-08-11 15:08:50 +02:00
Rainer Gerhards
809ed1768b imptcp: added $InputPTCPServerAddtlFrameDelimiter directive
also improved testbench
2010-08-11 15:06:50 +02:00
Rainer Gerhards
a77a99bfbf Merge branch 'v4-devel' into master
Conflicts:
	Makefile.am
	tests/tcpflood.c
2010-08-11 12:49:16 +02:00
Rainer Gerhards
32e715929f Merge branch 'v4-stable-imptcp' into tmp
Conflicts:
	Makefile.am
	configure.ac
	runtime/rsyslog.h
	tests/Makefile.am
2010-08-11 11:49:32 +02:00
Rainer Gerhards
c664adfa16 more testbench improvements and new tests 2010-08-10 19:34:42 +02:00
Rainer Gerhards
b5b4bd1389 small improvements to testbench 2010-08-10 18:29:22 +02:00
Rainer Gerhards
ee4aed1713 added tests for imptcp and fixed some problems with it
it now also works reliably in edge-triggered mode
2010-08-10 16:18:21 +02:00
Rainer Gerhards
40e70777ea Merge branch 'v4-devel'
Conflicts:
	ChangeLog
	Makefile.am
	configure.ac
	doc/rsyslog_conf_modules.html
	runtime/rsyslog.h
	tests/Makefile.am
2010-08-06 17:32:29 +02:00
Rainer Gerhards
80ff634c84 added omuxsock, which permits to write message to local Unix sockets
this is the counterpart to imuxsock, enabling fast local forwarding
2010-08-06 17:25:38 +02:00
Rainer Gerhards
490518ae18 preparing for 5.5.6 release 2010-07-21 14:46:10 +02:00
Rainer Gerhards
73ebadd598 added new parser modules
most importantly pmlastmsg, which handles the pathetic "last message
repeated n times" messages that some syslogd's emit.
Also some minor fixes, like wrong files names in make dist (for new
files introduced after last release)
2010-07-13 16:15:02 +02:00
Rainer Gerhards
31fae7b93d bugfix: "$ActionExecOnlyWhenPreviousIsSuspended on" was broken
Note that, as it looks, the directive was already broken in previous v5 versions.
So while I solved what looked like a (intentional) regression from the
performance tuning, I actually solved a previous regression as well ;)

I have also added new test cases to the testbench in order to capture such
problems in the future. This version does now look pretty good in shape.
2010-06-24 12:13:48 +02:00
Rainer Gerhards
0577f7f182 fixed a problem with ACT_MESSAGE_PASSING type of doAction interface 2010-06-15 14:55:09 +02:00
Rainer Gerhards
802f6d8a8f milestone(BUGGY): batch now pushed down to action
at least in important cases (not for non-direct action queues and some
other minor things). This version is definitely buggy, but may be tried
with success on a non-production system. I will continue to work on the
correctness, but needed to commit now to get a baseline.
2010-06-15 14:02:34 +02:00
Rainer Gerhards
315288a4c0 preparing for 5.5.4 release 2010-05-03 12:10:39 +02:00
Rainer Gerhards
23c7a914b2 solved some race condition in testbench
Note that this was NOT a race in rsyslog, but only one in a test case. So
it had no implications to the correctness of rsyslogd.
2010-04-29 11:09:43 +01:00
Rainer Gerhards
ed7f89a49c Merge branch 'v5-stable' 2010-04-26 15:55:51 +02:00
Rainer Gerhards
1a4b89a57f added new test to testbench
... had forgotten this step...
2010-04-26 15:32:42 +02:00
Rainer Gerhards
eec894fbc5 bugfix(kind of): output plugin retry behaviour could cause engine to loop
The rsyslog engine did not guard itself against output modules that do
not properly convey back the tryResume() behaviour. This then leads to
what looks like an endless loop. I consider this to be a bug of the
engine not only because it should be hardened against plugin misbehaviour,
but also because plugins may not be totally able to avoid this situation
(depending on the type of and processing done by the plugin).
2010-04-26 15:19:13 +02:00
Rainer Gerhards
59497bd057 Merge branch 'v5-stable'
Conflicts:
	tests/diag.sh
2010-04-26 14:14:59 +02:00
Rainer Gerhards
270e455d6d added testcase for problem with pipe without a reader
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=186

Note that this adds the test case, but does not yet provide a solution
(so make check will hang when executed). Fix will be done next.
2010-04-26 12:53:37 +02:00
Rainer Gerhards
d02bd7b837 Merge branch 'v4-devel' 2010-04-21 17:38:53 +01:00
Super-User
b526e3d92f bugfix: some race condition in testbench on Solaris/Sparc 2010-04-21 17:36:03 +01:00
Rainer Gerhards
534e07d738 Merge branch 'v4-devel' into master
Conflicts:
	plugins/imsolaris/imsolaris.c
	tests/Makefile.am
2010-04-20 16:03:51 +02:00