51 Commits

Author SHA1 Message Date
Andrew Stormont
97b5ab5344 fix build problems on illuminos
closes https://github.com/rsyslog/rsyslog/issues/226
2015-02-02 09:54:30 +01:00
Rainer Gerhards
d026e690e8 regression fix: build problems in debug build 2014-12-13 18:16:49 +01:00
Reed Morrison
e301ed53d5 Adding options for tcp keep alive. 2014-12-13 18:15:51 +01:00
Rainer Gerhards
537a5aa90a undo commit 077d59c2c7984eb0273be949969585be241408c8 due to regression
There is a regression in this feature-add commit and I don't have the
time to search for it. Refering it back to contributor.

see also https://github.com/rsyslog/rsyslog/pull/145
2014-11-03 17:05:18 +01:00
Tomas Heinrich
077d59c2c7 imtcp: add options to configure keep-alive params
New options:        (legacy counterparts)
keepalive.time      $inputtcpserverkeepalive_time
keepalive.probes    $inputtcpserverkeepalive_probes
keepalive.interval  $inputtcpserverkeepalive_interval

The options are set separately for each instance.

This patch bumps the interface version of the nsd,
netstrm and tcpsrv modules.
2014-10-30 15:34:39 +01:00
Rainer Gerhards
35bec820b6 optimze: reduce memory operations during dns resolution/hostname setting
previously, hostname and ip strings were shuffled to the msg object, which
created a property out of them. Now the cache holds the property, and it
is resused (almost) everywhere, what saves a lot of memory operations.

The only exception is imtcp session setup, where different handling
of the hostname is done, which we need to sort out (but that's another
story).
2013-01-22 16:55:21 +01:00
Rainer Gerhards
45d11af0b9 some fixes to commit 440aaff114607e82aefee56336846611a2e35c9c
extended testbench run brought up some issues...
2013-01-22 14:52:34 +01:00
Rainer Gerhards
440aaff114 optimize: move lowercasing of hostnames to cache
so we save this on each name lookup!
2013-01-24 09:59:26 +01:00
Rainer Gerhards
0d71694fb3 optimize: have dns cache pre-create rsyslog prop_t's 2013-01-24 06:19:13 +01:00
Rainer Gerhards
c0743225e8 refactor / simplify 2013-01-18 16:17:28 +01:00
Rainer Gerhards
eb5c7a0419 optimize: reduce nbr of strcpy() in FROMHOST processing 2013-01-18 14:40:41 +01:00
Rainer Gerhards
b0764541ab somewhat better debug output 2012-09-28 09:51:29 +02:00
88faed212c Fixed TCP CheckConnection handling in omfwd.c.
Interface needed to be changed in lower stream classes. Syslog TCP Sending is now resumed properly.
2012-08-25 12:08:08 -07:00
Rainer Gerhards
2bd4e10a4d Merge branch 'beta'
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	tests/Makefile.am
	tests/manytcp-too-few-tls.sh
2011-06-21 16:11:58 +02:00
Rainer Gerhards
2b5a7f10f5 somewhat improved debug logging 2011-06-10 19:49:42 +02:00
Rainer Gerhards
363c16b9de dnscache: bugfix, potentially grabagge data accessed
This was a bug of the new implementation, never released code.
2011-06-07 10:47:06 +02:00
Rainer Gerhards
ddad5b3299 added upper limit on # of dns cache entries to prevent DoS 2011-06-07 10:01:48 +02:00
Rainer Gerhards
2b9e5ac193 added a first implementation of a DNS name cache
this still has a couple of weaknesses, like no size limit, no expiration
of entries, suboptimal algorithms -- but it should perform better than
what we had previously. Implementation will be improved based on
feedback during the next couple of releases
2011-06-06 16:41:55 +02:00
Rainer Gerhards
759904862d step: imtcp did not properly handle privilege drop 2011-05-06 10:30:10 +02:00
Bojan Smojver
d1eb6e0edc added work-around for bug in gtls, which causes fd leak when using TLS
The capability has been added for module to specify that they do not
like being unloaded.
related bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=222

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2011-02-23 11:25:43 +01:00
Rainer Gerhards
11ab3c8000 bugfix: netstream ptcp support class was not correctly build on systems without epoll() support 2010-04-19 14:56:11 +02:00
Rainer Gerhards
e86b0680ef solved some platform issues with nsdpoll_ptcp 2009-11-25 15:06:41 +01:00
Rainer Gerhards
18749309f3 fixing some potential segfault conditions 2009-11-25 13:28:05 +01:00
Rainer Gerhards
48ac0ffecd milestone commit: first driver layer call done
... does not really run. We can now call into the epoll driver, but
not handle epoll(). The driver also needs more modifications.
2009-11-18 18:40:14 +01:00
Rainer Gerhards
e04e1b5002 enhanced test environment (including testbench)
support for enhancing probability of memory addressing failure by
using non-NULL default value for malloced memory (optional, only if
requested by configure option). This helps to track down some
otherwise undetected issues within the testbench and is expected
to be very useful in the future.
2009-10-22 11:33:38 +02:00
Rainer Gerhards
b61e5fffc4 strmsrv now supports KEEPALIVE socket option 2009-06-02 13:11:18 +02:00
Rainer Gerhards
97b89435aa bugfix: $AllowedSender handled invalidly for plain TCP transport 2008-11-29 09:47:04 +01:00
varmojfekoj
73d52a447c bugfix: double-free in pctp netstream driver
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2008-10-28 14:55:27 +01:00
Rainer Gerhards
3f6c73a8b7 added (internal) error codes to error messages
Also added redirector to web description of error codes
closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
2008-06-27 12:52:45 +02:00
Rainer Gerhards
75063e54b2 bugfix: gtls und ptcp netstream driver communicated invalid iRet
This was introduced due to recent interface change.
2008-06-24 18:27:52 +02:00
Rainer Gerhards
55e01da2ec somewhat improved plain tcp syslog reliability
...by doing a connection check before sending. Credits to Martin
Schuette for providing the idea. Details are available at
http://blog.gerhards.net/2008/06/reliable-plain-tcp-syslog-once-again.html
2008-06-09 12:40:54 +02:00
Rainer Gerhards
85b587f93d first implementation of TLS server client authentication check
The TLS server now checks the client fingerprint. This works, but
is highly experimental. Needs to be refined for practice. Also:
- implemented permittedPeers helper construct to store names
- changed omfwd implementation to use new permittedPeers
2008-05-19 18:52:44 +02:00
Rainer Gerhards
48684ceac5 improved error messages and corrected fingerprint format 2008-05-19 09:43:37 +02:00
Rainer Gerhards
edf41396ef regained netstream driver genericity; improved drivers
- made action logic pass optional auth params only if they are
  actually configured
- added new authMode and Fingerprint methods to ptcp netstream
  driver (keeping them once again generic)
- added diagnostics messages when invalid auth modes were
  configured
2008-05-17 11:19:12 +02:00
Rainer Gerhards
da88900143 added $InputTCPServerStreamDriverMode config directive 2008-04-30 18:53:21 +02:00
Rainer Gerhards
1c2268faa8 restructured netstrm driver layer
the new structure prevents repetitive loads and unloads of
driver files; it also has less overhead
The "select" and regular driver are now contained in a single
file.
2008-04-30 17:41:17 +02:00
Rainer Gerhards
c370fc6305 server handshake now works with nonblocking sockets 2008-04-30 16:35:35 +02:00
Rainer Gerhards
b0d63ea8f2 made plain tcp syslog via TLS work on the server
... but so far only in blocking mode
2008-04-30 14:51:45 +02:00
Rainer Gerhards
055d4ffc2a fixed problem with module unload sequence 2008-04-29 15:36:22 +02:00
Rainer Gerhards
a3ff7eaf85 added $ActionSendStreamDriverMode config directive 2008-04-28 14:21:58 +02:00
Rainer Gerhards
75cf92117c made gtls server driver work in plain tcp mode 2008-04-25 12:54:59 +02:00
Rainer Gerhards
af50a76c3f made this compile with the new abstracted socket server calls
undid some invalid changes during merge plus did a few wrappers.
Compiles, but does not yet work.
2008-04-24 17:59:43 +02:00
Rainer Gerhards
4b05bef636 Merge branch 'sock-abstract' into tls
Conflicts:

	runtime/Makefile.am
	runtime/netstrm.c
	runtime/nsd.h
	runtime/nsd_ptcp.c
	runtime/rsyslog.h
2008-04-24 17:43:45 +02:00
Rainer Gerhards
a7040a9623 some cleanup 2008-04-24 11:03:34 +02:00
Rainer Gerhards
0e19d501bb fixed newly introduced memory leaks 2008-04-24 10:54:51 +02:00
Rainer Gerhards
bf3d2c1b39 message reception via TCP work again
... at least in some cases ;) I assume there are still a couple
of bugs inside the code. But at least we have something from
where we can continue to work on.
2008-04-24 09:57:43 +02:00
Rainer Gerhards
50fe2ec2ea removed listener array from inidividual netstrm (mostly finished) 2008-04-23 16:31:35 +02:00
Rainer Gerhards
2be459c4d7 objects for receive-side socket abstraction specified
The objects for receiver-side socket abstraction have now be
specified. The project as whole does not yet compile and
definitely not run, but I'd like to commit some milestones along
this way.
2008-04-23 09:59:01 +02:00
Rainer Gerhards
2069ab114e first working TLS-enabled plain TCP sender
implemented a first working version of a TLS-enabled plain TCP
sender (but, of course, the implementation is insecure as it is)
2008-04-18 18:29:02 +02:00
Rainer Gerhards
22ad77a627 fixed abort on rsyslogd termination 2008-04-18 12:20:02 +02:00