summaryrefslogtreecommitdiffstats
path: root/src/util.c
Commit message (Collapse)AuthorAgeFilesLines
* * Use buffered IO for loggingVsevolod Stakhov2009-08-251-13/+7
|
* * Migrate fuzzy storage to use UDP instead of TCPVsevolod Stakhov2009-08-251-3/+15
|
* * Misprint in macro nameVsevolod Stakhov2009-08-251-1/+1
|
* * Improve google perf tools supportVsevolod Stakhov2009-08-251-2/+40
| | | | * Pass to event_add only copies of struct timeval to avoid timing problems
* * Add http maps supportVsevolod Stakhov2009-07-211-3/+3
|
* * Introduce new common system of map files, that can be used for different ↵Vsevolod Stakhov2009-07-201-179/+6
| | | | | | | 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/+3
| | | | | | | * Add metrics optimization and symbols cache * Change all plugins [DRAGONS]: not for production usage, some things are still not working!
* * Make autolearn workingVsevolod Stakhov2009-07-091-1/+1
|
* * Add views support (not completely tested yet)Vsevolod Stakhov2009-06-291-4/+84
|
* * Use own logging system to use static logging buffer instead of dynamically ↵Vsevolod Stakhov2009-06-161-0/+28
| | | | allocated one
* * Do not use values from clock_gettime for getting current timeVsevolod Stakhov2009-06-051-2/+4
|
* * Avoid double freeing of match infoVsevolod Stakhov2009-06-051-1/+1
|
* * Improve logic of reading list files, add automatic rereading of list files ↵Vsevolod Stakhov2009-06-031-0/+121
| | | | while changing
* * Enable counters interfaceVsevolod Stakhov2009-05-051-3/+1
| | | | * Move modules configuration to init stage
* * Temporary disable counters as it is impossible to actually create shared hashVsevolod Stakhov2009-05-041-1/+3
|
* * Add counters for rspamd symbolsVsevolod Stakhov2009-05-041-0/+28
| | | | * Fix shared hashes
* * Allow binds to INADDR_ANY if bind_sock is *:portVsevolod Stakhov2009-04-291-1/+1
|
* * Add ability to build rspamd without perl supportVsevolod Stakhov2009-03-271-2/+2
| | | | | * Fix creating of uinx socket * Improve some build issues
* * More accurate work with clockVsevolod Stakhov2009-03-251-6/+16
|
* * Log scan time and scan length of messagesVsevolod Stakhov2009-03-251-0/+14
| | | | * Remove 2 memory leaks
* * Fix multiply accept issuesVsevolod Stakhov2009-03-241-2/+9
|
* * Polish socket utility functionsVsevolod Stakhov2009-03-241-22/+16
|
* * Fix many compile time warnings and polish codeVsevolod Stakhov2009-03-241-1/+2
|
* * Add functions support to rspamd regexpsVsevolod Stakhov2009-03-191-194/+0
| | | | | | | | * Parse expressions with state machine which allows different kinds of arguments in expressions * Fix test to accord current data * Add support of fucntions to regexp module * Move all regexp logic to separate file, describe its API * Fix descriptors leakage in surbl module
* * Fix reload logicVsevolod Stakhov2009-03-131-4/+11
| | | | | * Create listen sock for lmtp in main processes dispatcher to allow multiply lmtp workers * Fix logic of logging
* * Some fixes to regexp moduleVsevolod Stakhov2009-03-121-1/+4
| | | | * Add documentation for rspamd regexp module
* * Fix bad memory leaks and memory corruption in url detecting moduleVsevolod Stakhov2009-03-061-0/+2
|
* * Fix initialization procedure of redirectorVsevolod Stakhov2009-03-061-1/+1
| | | | * Do not write to log file if we cannot open it
* * Add ability to fork multiply lmtp workersVsevolod Stakhov2009-03-031-33/+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-15/+104
| | | | | | | * 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
* * Properly set initial state for surbl state machineVsevolod Stakhov2009-03-021-0/+7
| | | | * Ignore SIGPIPE globally as dispatcher performs check of all write (2) calls
* * Remove %m from logging it seems to be unsupported by FreeBSD printf versionVsevolod Stakhov2009-03-021-1/+1
|
* * Fix logging when process is startingVsevolod Stakhov2009-02-261-2/+6
| | | | | * Add -t option for config testing * Try to search default config in install prefix not in current directory
* * Implement rspamd IO with IO dispatcher (TODO: still some issues with ↵Vsevolod Stakhov2009-02-191-45/+0
| | | | timeouts must be resolved)
* * Prepare to migrate to cmake (still need to write install target and ↵Vsevolod Stakhov2009-02-161-18/+1
| | | | | | | | 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
* * Add BSD license textVsevolod Stakhov2009-02-161-0/+24
|
* * Try to fix reading a line from user (using pools)Vsevolod Stakhov2009-02-061-0/+45
|
* * Fix errors in learning implementationVsevolod Stakhov2009-01-111-2/+15
|
* * Implement delayed fork of dead workers (to avoid fork bombs)Vsevolod Stakhov2009-01-111-9/+16
| | | | | * Implement refork of controller * Log time to console in normal view
* * Make sample config more completeVsevolod Stakhov2008-12-181-32/+16
| | | | | * Fix bugs with config file parsing * Fix bugs with creating sockets and reading commands
* * Fix build under FreeBSD (forgotten include)Vsevolod Stakhov2008-12-111-0/+1
|
* * Remove strlcpy code and replace it with glib alternativeVsevolod Stakhov2008-12-031-7/+7
| | | | * Polish code and remove bugs found
* * Add config routines for stat filesVsevolod Stakhov2008-12-011-0/+59
| | | | * Add function to resolve stat file name
* * Reorganize structure of source filesVsevolod Stakhov2008-11-011-0/+834
* 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