21 Commits

Author SHA1 Message Date
Rainer Gerhards
448f16495c remove "inline" attribute from excessivly long functions 2016-10-26 11:50:15 +02:00
Rainer Gerhards
bbcbb03c64 fix compiler warnings 2016-07-22 15:00:28 +02:00
Rainer Gerhards
07a074dd88 cleanup: remove dbgprintf's not intended to stay
those starting at column 0 are temporary debug aids during development.
Some of them I intend to keep in for a version or two. Some of them
I tend to forget later. This is a cleanup of those. Most are removed,
some are promoted to be permanently there - now indicated by proper
indention.
2016-01-13 09:20:07 -05:30
Rainer Gerhards
95fefbc12a prepare for 7.20 stable release & minor things
The most important real code chane is the initialization of the
epoll control set. This should just be cosmetic (valgrind warnings),
as all data we actually use already was properly initialized.
2012-10-22 11:21:01 +02:00
Rainer Gerhards
16e3921905 Merge branch 'v5-stable' into v6-stable
Conflicts:
	runtime/nsdpoll_ptcp.c
2012-10-19 09:32:58 +02:00
Rainer Gerhards
d36407c794 fix epoll-enabled code to use correct data member for pointers 2012-10-19 09:07:32 +02:00
Rainer Gerhards
57722664bc bugfix (kind of): memory leak with tcp reception epoll handler
This was an extremely unlikely leak and, if it happend, quite small.
Still it is better to handle this border case.
2011-04-13 15:55:38 +02:00
Rainer Gerhards
ef45e0ff71 Merge branch 'v5-devel'
Conflicts:
	tests/diag.sh
2011-03-14 12:49:12 +01:00
Michael Biebl
4671cad512 Fall back to epoll_create() if epoll_create1() is not available
epoll_create1() was introduced in Linux kernel 2.6.27. If rsyslog was
compiled on a newer kernel but run on a kernel older than 2.6.27, remote
syslog fails. Apply a runtime check for epoll_create1() and fall back to
epoll_create() in this case.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617996
2011-03-14 09:18:43 +01:00
Rainer Gerhards
48ab717fed fixing regression: multi-threading had races 2011-01-31 13:13:00 +01:00
Rainer Gerhards
b621be0936 resolved problem with intermixing requests 2011-01-27 17:25:50 +01:00
Rainer Gerhards
c6447bb345 experimental: added thread pool to tcpsrv epoll handler
this seems to work in lab, but is brand-new code. needs practice
drill.
2011-01-27 16:33:13 +01:00
Rainer Gerhards
3049f535ff interim commit: refactored epoll processing
this is a perquisite for multi-threading the input handler
2011-01-26 15:37:07 +01:00
Rainer Gerhards
093ad4a47b improved tcpsrv performance by enabling multiple-entry epoll
so far, we always pulled a single event from the epoll interface.
Now 128, what should result in performance improvement (less API
calls) on busy systems. Most importantly affects imtcp.
2011-01-25 17:31:24 +01:00
varmojfekoj
7904ef4e37 bugfix: compile failed with --enable-unlimited-select
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-11-05 10:04:33 +01:00
Rainer Gerhards
5402ba982f bugfix: failed to compile on systems without epoll support 2010-03-02 10:40:23 +01: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
e0d77fa90c milestone commit: first working version with epoll/tcp
... but not well-tested, so there may be many hidden bugs.
2009-11-23 15:33:52 +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
c82f2781d2 added skeleton for supporting epoll() API in netstream subsystem 2009-11-18 14:16:08 +01:00