summaryrefslogtreecommitdiffstats
path: root/tcps_sess.c
Commit message (Collapse)AuthorAgeFilesLines
* improved support for --enable-debuglessRainer Gerhards2012-05-291-5/+5
| | | | Now it's probably time to prove the effect in practice...
* Merge branch 'v5-stable-newstats'Rainer Gerhards2012-04-071-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: action.c configure.ac doc/imuxsock.html plugins/imklog/imklog.c plugins/imptcp/imptcp.c plugins/imtcp/imtcp.c plugins/imudp/imudp.c plugins/imuxsock/imuxsock.c runtime/glbl.c runtime/glbl.h runtime/net.c runtime/ruleset.c tcpsrv.h tools/syslogd.c
| * added configuration directive to disable octet-counted framingRainer Gerhards2012-03-191-1/+3
| | | | | | | | ... for imtcp, directive is $InputTCPServerSupportOctetCountedFraming
| * Merge branch 'v5-stable' into v5-stable-newstatsRainer Gerhards2012-01-161-16/+16
| |\ | | | | | | | | | | | | Conflicts: plugins/impstats/impstats.c
* | \ Merge branch 'v5-stable' into masterRainer Gerhards2012-01-181-16/+16
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog action.h configure.ac doc/manual.html plugins/immark/immark.c plugins/impstats/impstats.c plugins/imptcp/imptcp.c plugins/imtcp/imtcp.c runtime/cfsysline.c runtime/cfsysline.h runtime/conf.c runtime/ctok.c runtime/ctok.h runtime/ctok_token.c runtime/ctok_token.h runtime/dnscache.h runtime/expr.c runtime/expr.h runtime/rule.c runtime/rule.h runtime/ruleset.h runtime/sysvar.c runtime/vm.h runtime/vmop.c runtime/vmop.h runtime/vmprg.c runtime/vmprg.h runtime/vmstk.c runtime/vmstk.h tools/omusrmsg.c
| * | Merge branch 'v4-stable' into v5-stableRainer Gerhards2012-01-141-16/+16
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: plugins/imfile/imfile.c plugins/omtesting/omtesting.c tcpsrv.c threads.c
| | * | some more files to ASL 2.0Rainer Gerhards2012-01-111-16/+16
| | | |
* | | | Merge branch 'v5-devel'Rainer Gerhards2011-12-201-0/+1
|\ \ \ \
| * \ \ \ Merge branch 'v5-stable-newstats' into v5-develRainer Gerhards2011-12-201-0/+1
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | Conflicts: plugins/imuxsock/imuxsock.c
| | * | | imtcp: added stats countersRainer Gerhards2011-12-201-0/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | also adds counters to other users of tcpsrv.c method, but these do not work if default submit method is overwritten (currently only the case for imdiag, what we don't consider a problem)
* | | | cosmetic cleanupRainer Gerhards2011-05-021-1/+0
| | | |
* | | | Merge branch 'v5-devel'Rainer Gerhards2011-04-121-1/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html plugins/imtcp/imtcp.c
| * | | added new config directive $InputTCPFlowControl...Rainer Gerhards2011-04-011-1/+2
| |/ / | | | | | | | | | | | | ... to select if tcp received messages shall be flagged as light delayable or not.
* | | fixing regression: multi-threading had racesRainer Gerhards2011-01-311-0/+3
|/ /
* | Merge branch 'v4-devel' into masterRainer Gerhards2010-08-051-2/+9
|\ \ | |/ | | | | | | Conflicts: ChangeLog
| * bugfix: zero-sized (empty) messages were processed by imtcpRainer Gerhards2010-07-281-2/+9
| | | | | | | | they are now dropped as they always should have been
* | Merge branch 'beta' into masterRainer Gerhards2010-04-091-3/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac plugins/imudp/imudp.c runtime/stream.h tests/Makefile.am tests/diag.sh tools/omfile.c
| * \ Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-03-291-3/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html runtime/debug.c runtime/stream.c tests/Makefile.am tests/diskqueue.sh tests/nettester.c tools/omfile.c
| | * cleanup: removed no longer needed variableRainer Gerhards2010-03-221-3/+0
| | | | | | | | | | | | Most importantly, this keeps the thread debugger output clean.
* | | added capability to turn off standard LF delimiter in TCP serverRainer Gerhards2010-03-011-1/+1
|/ / | | | | | | via new directive "$InputTCPServerDisableLFDelimiter on"
* | enhanced test environment (including testbench)Rainer Gerhards2009-10-221-1/+2
| | | | | | | | | | | | | | | | 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.
* | removed no longer needed msg_t property "bParseHOSTNAME"Rainer Gerhards2009-10-131-2/+0
| |
* | bugfix and testbench improvementsRainer Gerhards2009-10-071-0/+1
|/ | | | | | | | - bugfix: solved potential (temporary) stall of messages when the queue was almost empty and few new data added (caused testbench to sometimes hang!) - fixed some race condition in testbench - added more elaborate diagnostics to parts of the testbench - solved a potential race inside the queue engine
* now put the new property-based methods to good useRainer Gerhards2009-07-011-0/+1
| | | | | | ... hopefully reducing the number of allocs/frees as well as overall memory usage in a busy system (plus that these shared properties hopefully remain in cache longer than its single-instance counterparts...)
* RcvFromIP now also a propertyRainer Gerhards2009-07-011-8/+11
| | | | | | This sets stage to enable use of the property-interface to speed up things (mildly), the next step to be done. I have also fixed one regression of yesterday's changes.
* introduced a new way of handling the RcvFrom propertyRainer Gerhards2009-06-301-5/+13
| | | | | | | | | | | ... plus a fix for a long-time bug in obj-types.h. That lead to the object pointer only then to become NULL when the object was actually destructed, I discovered this issue during introduction of the pRcvFrom property in msg_t, but it potentially had other effects, too. I am not sure if some experienced instability resulted from this bug OR if its fix will cause harm to so-far "correctly" running code. The later may very well be. Thus I will change it only for the current branch and also the beta, but not in all old builds. Let's see how things evolve.
* finished transition to using inputName propertyRainer Gerhards2009-06-301-1/+0
| | | | | ... plus some celanup and adding minor missing functionality (the rule debug info again tell the property name, not just number).
* introduced the idea of detached propertiesRainer Gerhards2009-06-291-2/+6
| | | | | | | | | | | | | some things inside the message can be used over a large number of messages and need to to be allocated and re-written every time. I now begin to implement this as a "prop_t" object, first use for the inputName. Some input modules are already converted, some others to go. Will do a little performance check on the new method before I go further. Also, this commit has some cleanup and a few bug fixes that prevented compiliation in debug mode (I overlooked this as I did not compile for debug, what I normally do, and the automatted test also does not do that)
* cleaned up/optimized raw message handling in msg objectRainer Gerhards2009-06-181-4/+2
|
* implemented first version of multi-enqueue support, queue sideRainer Gerhards2009-06-161-1/+1
|
* milestone: input-side multiSubmit capabilityRainer Gerhards2009-06-161-8/+26
| | | | ... commit before I try to touch the queue side ;)
* fixing problems that occurred during the last mergeRainer Gerhards2009-06-161-2/+0
|
* minor cleanupRainer Gerhards2009-06-161-2/+0
|
* Merge branch 'master' into omfileRainer Gerhards2009-06-161-30/+25
|\ | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.h tcps_sess.c tcpsrv.c tools/syslogd.c
| * some performance optimizationsRainer Gerhards2009-06-161-29/+25
| | | | | | | | | | | | - saved gettimeofday() calls in imtcp (and increased reception buffer) - somewhat optimized stringbuf.c - some other optimizations
* | fixed small bug in testbenchRainer Gerhards2009-06-121-2/+0
| |
* | fixed a regression from past commit & more performance enhancementRainer Gerhards2009-06-121-2/+3
| | | | | | | | a larger buffer is a cheap, yet useful, enhancement... ;)
* | performance-enhanced imtcpRainer Gerhards2009-06-121-2/+10
| | | | | | | | | | ...by now using lowres time and thus saving many time() calls. This needs some performance testing and must be made configurable if it works out.
* | completed multi-ruleset core supportRainer Gerhards2009-06-121-0/+1
|/ | | | ... as well as added multi-ruleset support for imtcp
* improved testbench / solved imdiag race conditionRainer Gerhards2009-05-251-11/+12
| | | | | | | | | imdiag/imtcp had a modload race condition (as imdiag is a testing aid, this has no implications for production deployments). Also, I replaced netcat by a custom program to talk to imdiag. This, for the first time ever, is now a Java program. I plan to add some GUI troubleshooting tools and thought it is a good idea to start doing things in Java that can simply be done in that language.
* added new testing module imdiagRainer Gerhards2009-05-251-6/+21
| | | | | which enables to talk to the rsyslog core at runtime. The current implementation is only a beginning, but can be expanded over time
* added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-2/+15
| | | | | | | | | | | Well, actually this and a lot of related things. I improved the testbench so that the new capabilities are automatically tested and also did some general cleanup. The current multiple tcp listener solution will probably receive some further cleanup, too, but looks quite OK so far. I also reviewed the way tcpsrv et all work, in preparation of using this code for imdiag. I need to document the findings, especially as the code is rather complicated "thanks" to the combination of plain tcp and gssapi transport modes.
* Fix compiler warningsMichael Biebl2009-05-191-0/+1
| | | | | | include <string.h> for memcpy and strlen. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* performance enhancement: imtcp calls parser no longer on input threadRainer Gerhards2009-04-231-12/+54
| | | | | | but rather inside on of the potentially many main msg queue worker threads (an enhancement scheduled for all input plugins where this is possible)
* enhanced imtcp, among others to handel invalid NetScreen framingRainer Gerhards2008-12-101-5/+7
| | | | | | | | | | | | - added $InputTCPServerAddtlFrameDelimiter config directive, which enabeles to specify an additional, non-standard message delimiter for processing plain tcp syslog. This is primarily a fix for the invalid framing used in Juniper's NetScreen products. Credit to forum user Arv for suggesting this solution. - added $InputTCPServerInputName property, which enables a name to be specified that will be available during message processing in the inputname property. This is considered useful for logic that treats messages differently depending on which input received them.
* moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-5/+6
| | | | | | This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
* "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-4/+4
| | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.
* added $UDPServerTimeRequery optionRainer Gerhards2008-10-061-4/+4
| | | | | | | ...which enables to work with less acurate timestamps in favor of performance. This enables querying of the time only every n-th time if imudp is running in the tight receive loop (aka receiving messsages at a high rate)
* added properties "inputname" and "$myhostname"Rainer Gerhards2008-09-101-4/+8
| | | | | | | | - added message property "inputname", which contains the name of the input (module) that generated it. Presence is depending on suport in each input module (else it is blank). - added system property "$myhostname", which contains the name of the local host as it knows itself.
* removed compile time fixed message size limit (was 2K)Rainer Gerhards2008-09-021-15/+26
| | | | | The limit can now be set via $MaxMessageSize global config directive (finally gotten rid of MAXLINE ;))