aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
Commit message (Collapse)AuthorAgeFilesLines
* * Introduce new logging system:Vsevolod Stakhov2009-12-221-8/+0
| | | | | | | | | - independent and customizeable buffering - line buffering - errors handling support - custom (ip based) debug - append function name automaticaly (based on __FUNCTION__) - add some logic to logs system
* * Adopt printf function from nginx for comfortable printing of some data ↵Vsevolod Stakhov2009-11-301-0/+4
| | | | | | | types (fixed strings, pids etc) * Fix work of http maps (they were broken in some places before) * Fix sync of statfiles (not fully tested yet)
* * Write revision and revision time to statfileVsevolod Stakhov2009-11-121-0/+7
| | | | * Make some improvements to API (trying to make it more clear)
* * Add more advanced signal processing routineVsevolod Stakhov2009-11-051-1/+5
|
* * Implement new system of managing rspamd processesVsevolod Stakhov2009-10-301-1/+4
|
* * Export definitionsVsevolod Stakhov2009-09-211-1/+4
|
* * Cleanify logic of processes dispatcherVsevolod Stakhov2009-09-211-1/+1
|
* * Migrate fuzzy storage to use UDP instead of TCPVsevolod Stakhov2009-08-251-0/+2
|
* * Improve google perf tools supportVsevolod Stakhov2009-08-251-0/+2
| | | | * Pass to event_add only copies of struct timeval to avoid timing problems
* * Add http maps supportVsevolod Stakhov2009-07-211-1/+1
|
* * Introduce new common system of map files, that can be used for different ↵Vsevolod Stakhov2009-07-201-5/+1
| | | | | | | types of maps. This includes new logic of callbacks and callbacks calling, files are monitored with evtimers with jittering. HTTP support would be included soon as well.
* * Rework the whole filters systemVsevolod Stakhov2009-07-131-1/+1
| | | | | | | * Add metrics optimization and symbols cache * Change all plugins [DRAGONS]: not for production usage, some things are still not working!
* * Add views support (not completely tested yet)Vsevolod Stakhov2009-06-291-0/+5
|
* * Use own logging system to use static logging buffer instead of dynamically ↵Vsevolod Stakhov2009-06-161-1/+5
| | | | allocated one
* * Do not use values from clock_gettime for getting current timeVsevolod Stakhov2009-06-051-1/+1
|
* * Improve logic of reading list files, add automatic rereading of list files ↵Vsevolod Stakhov2009-06-031-0/+4
| | | | while changing
* * Add counters for rspamd symbolsVsevolod Stakhov2009-05-041-0/+2
| | | | * Fix shared hashes
* * More accurate work with clockVsevolod Stakhov2009-03-251-1/+1
|
* * Log scan time and scan length of messagesVsevolod Stakhov2009-03-251-0/+1
| | | | * Remove 2 memory leaks
* * Fix reload logicVsevolod Stakhov2009-03-131-0/+1
| | | | | * Create listen sock for lmtp in main processes dispatcher to allow multiply lmtp workers * Fix logic of logging
* * Add ability to fork multiply lmtp workersVsevolod Stakhov2009-03-031-2/+0
| | | | | | | * Add ability to drop privilleges of rspamd processes * Add ability to install redirector with rspamd * Add FreeBSD start scripts for rspamd and redirector * Remove command line parsing from util.c as it has specific usage only in main process
* * Unify socket creation and accepting by using utility functionsVsevolod Stakhov2009-03-031-4/+6
| | | | | | | * Check SO_ERROR on socket immideately after connect/bind to avoid resourses allocation for unsuccessful connections * Avoid descriptors leakage when we create sockets and have errors on them * Set on all socket descriptors FD_CLOEXEC flag to avoid problems with executing LDA
* * Implement rspamd IO with IO dispatcher (TODO: still some issues with ↵Vsevolod Stakhov2009-02-191-4/+0
| | | | timeouts must be resolved)
* * Prepare to migrate to cmake (still need to write install target and ↵Vsevolod Stakhov2009-02-161-14/+3
| | | | | | | | working with XS implicitly) * Move all system includes to one file where we detect availability of all that includes * Fix license misprint * Fix some issues with perl initializing
* * Try to fix reading a line from user (using pools)Vsevolod Stakhov2009-02-061-0/+3
|
* * Make sample config more completeVsevolod Stakhov2008-12-181-1/+1
| | | | | * Fix bugs with config file parsing * Fix bugs with creating sockets and reading commands
* * Add logic for filtering messages with tokenizer/classifier pairVsevolod Stakhov2008-12-101-0/+6
|
* * Add config routines for stat filesVsevolod Stakhov2008-12-011-0/+4
| | | | * Add function to resolve stat file name
* * Reorganize structure of source filesVsevolod Stakhov2008-11-011-0/+60
* Adopt build system for new structure --HG-- rename : cfg_file.h => src/cfg_file.h rename : cfg_file.l => src/cfg_file.l rename : cfg_file.y => src/cfg_file.y rename : cfg_utils.c => src/cfg_utils.c rename : controller.c => src/controller.c rename : filter.c => src/filter.c rename : filter.h => src/filter.h rename : fstring.c => src/fstring.c rename : fstring.h => src/fstring.h rename : main.c => src/main.c rename : main.h => src/main.h rename : mem_pool.c => src/mem_pool.c rename : mem_pool.h => src/mem_pool.h rename : memcached-test.c => src/memcached-test.c rename : memcached.c => src/memcached.c rename : memcached.h => src/memcached.h rename : perl.c => src/perl.c rename : perl.h => src/perl.h rename : plugins/regexp.c => src/plugins/regexp.c rename : plugins/surbl.c => src/plugins/surbl.c rename : protocol.c => src/protocol.c rename : protocol.h => src/protocol.h rename : upstream.c => src/upstream.c rename : upstream.h => src/upstream.h rename : url.c => src/url.c rename : url.h => src/url.h rename : util.c => src/util.c rename : util.h => src/util.h rename : worker.c => src/worker.c