summaryrefslogtreecommitdiffstats
path: root/runtime/stream.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'beta'Rainer Gerhards2009-08-191-2/+2
|\
| * bugfix: potential segfault in output file writer (omfile)Rainer Gerhards2009-08-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | In async write mode, we use modular arithmetic to index the output buffer array. However, the counter variables accidently were signed, thus resulting in negative indizes after integer overflow. That in turn could lead to segfaults, but was depending on the memory layout of the instance in question (which in turn depended on a number of variables, like compile settings but also configuration). The counters are now unsigned (as they always should have been) and so the dangling mis-indexing does no longer happen. This bug potentially affected all installations, even if only some may actually have seen a segfault.
* | Merge branch 'v4-devel'Rainer Gerhards2009-07-081-1/+18
|\| | | | | | | | | | | Conflicts: runtime/debug.h runtime/stream.c
| * added capability to write incomplete buffers after an inactivity timeoutRainer Gerhards2009-07-071-0/+1
| | | | | | | | | | | | for the stream class and thus finally activating omfile's timeout capability in a useful way without polling and too-high performance overhead.
| * fixed a bug introduced today that lead to an abort in queue disk modeRainer Gerhards2009-07-071-0/+1
| |
| * first shot at asynchronous stream writer with timeout capabilityRainer Gerhards2009-07-061-1/+16
| | | | | | | | | | ... seems to work on quick testing, but needs a far more testing and improvement. Good milestone commit.
* | Merge branch 'omfile' into v5-develRainer Gerhards2009-06-231-2/+3
|\| | | | | | | | | Conflicts: runtime/rsyslog.h
| * prevented unneccessary apc callsRainer Gerhards2009-06-231-2/+3
| |
* | Merge branch 'omfile' into v5-develRainer Gerhards2009-06-161-37/+80
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this was NOT a trivial merge, and there may be some issues. This needs to be seen when we continue developing. Conflicts: runtime/msg.h runtime/obj.h runtime/queue.c runtime/srUtils.h runtime/stream.c runtime/stream.h runtime/wti.c tests/Makefile.am tools/omfile.c tools/syslogd.c
| * omfile buffers are now synchronized after inactivityRainer Gerhards2009-06-151-2/+8
| | | | | | | | | | | | This is the first shot at this functionality. Currently, we run off a fixed counter in the rsyslogd mainloop, which needs to be restructured. But this code works, so it is a good time for a commit.
| * re-enabled pipe, tty and console in omfileRainer Gerhards2009-06-121-2/+3
| | | | | | | | | | | | | | ... by moving code to stream.c. Thanks to the new design, new cases are not really needed, resulting in cleaner code. I also did a cleanup of header file usage as a side-activity.
| * re-enabled outchannel functionalityRainer Gerhards2009-06-121-1/+6
| |
| * improved error handling and added fsync() supportRainer Gerhards2009-06-081-1/+4
| | | | | | | | | | | | ... restoring missing functionality after the restructuring of imfile. As a side-effect, this also lays the foundation for even more reliable queue engine operations (but this is not yet done).
| * cleanup in preparation of next stepsRainer Gerhards2009-06-051-1/+23
| | | | | | | | | | now cleand up omfile and straighted out some things. The only commented-out code left is code that must be moved/merged to the stream class, my next target.
| * added $OMFileIOBufferSize config directive and plumbingRainer Gerhards2009-06-041-2/+1
| |
| * modified stream class and omfile to work with itRainer Gerhards2009-06-041-2/+9
| | | | | | | | now some basic operations are carried out via the stream class.
| * cleaned up stream class ...Rainer Gerhards2009-06-041-28/+28
| | | | | | | | | | | | ... and also made it callable via an rsyslog interface rather then relying on the OS loader (important if we go for using it inside loadbale modules, which we soon possible will)
* | solved design issue with queue terminationRainer Gerhards2009-05-261-0/+1
|/ | | | | | | | | | | ... and also improved the test suite. There is a design issue in the v3 queue engine that manifested to some serious problems with the new processing mode. However, in v3 shutdown may take eternally if a queue runs in DA mode, is configured to preserve data AND the action fails and retries immediately. There is no cure available for v3, it would require doing much of the work we have done on the new engine. The window of exposure, as one might guess from the description, is very small. That is probably the reason why we have not seen it in practice.
* moved runtime files into their own directoryRainer Gerhards2008-04-161-0/+131