Vsevolod Stakhov
b2f0dd775c
[Minor] Get rid of some compiler warnings
1 year ago
Vsevolod Stakhov
f85dfb2f0b
[Minor] Add size to the metadata exporter
Issue: #4321
1 year ago
Vsevolod Stakhov
e9794d53f3
[Minor] Move checks to the correct branch
1 year ago
Vsevolod Stakhov
0449b56df0
[Fix] Honor group flag for one shot
1 year ago
Vsevolod Stakhov
f92417acd4
[Minor] Set crash handler all the time
1 year ago
Vsevolod Stakhov
425813061c
[Minor] Restore non-blocking semantics for the control socket to avoid deadlocks
XXX: it might be osx specific
1 year ago
Vsevolod Stakhov
5e78c6ce33
[Minor] Reserve some more bytes
1 year ago
Vsevolod Stakhov
530b8720f8
[Minor] Simplify legacy calls via glib
1 year ago
Vsevolod Stakhov
1263db3fe0
[Minor] Slightly improve the documentation
1 year ago
Vsevolod Stakhov
a18c2f7c4b
[Minor] Plug memory leak for sigaltstack
1 year ago
Vsevolod Stakhov
5bf1a1a224
[Minor] Fix static memory leak in redis stat
1 year ago
Vsevolod Stakhov
7d27657ae9
[Minor] Add static log tag for hyperscan cache
1 year ago
Vsevolod Stakhov
9fb5afd475
[Rules] Do not insert ONCE_RECEIVED_STRICT on RDNS missing
Suggested by: @moisseev
1 year ago
Vsevolod Stakhov
0cad33873c
[Minor] Remove unused variable
1 year ago
Vsevolod Stakhov
d475148051
[Minor] Another small neat
1 year ago
Vsevolod Stakhov
0a32df228b
[Fix] Another corner case in url parsing
1 year ago
Vsevolod Stakhov
acb8e2cd80
[Fix] Try to fix parsing of the unencoded `>` characters in html attributes
1 year ago
Vsevolod Stakhov
476ef53f04
[Minor] Add small additional logging
1 year ago
Vsevolod Stakhov
f293c106b7
[Project] Enable hyperscan tools for re_cache
1 year ago
Vsevolod Stakhov
2ef7314efb
[Minor] Fix offset usage
1 year ago
Vsevolod Stakhov
ac82ae3051
[Project] Allow offsets in the hyperscan cache
1 year ago
Vsevolod Stakhov
b7b1b264b5
[Minor] Allow to map files at some offset
1 year ago
Vsevolod Stakhov
ffc1272554
[Minor] Improve logging
1 year ago
Vsevolod Stakhov
00c70303f6
[Minor] Normalise file names
1 year ago
Vsevolod Stakhov
96b94707c1
[Rework] Make http normalize path function a generic function
1 year ago
Vsevolod Stakhov
c85595e623
[Project] Rework cleanup
1 year ago
Vsevolod Stakhov
63c6d3080d
[Project] Synchronize hyperscan caches via the main process
1 year ago
Vsevolod Stakhov
b1d1a3c45e
[Rework] Use blocking socket for IPC between main and workers
There are no reasons why control pipes are blocking: the messages
there are rare and are strictly bounded by command sizes, so if we block
on some pipe, it is ok, as we still poll that for all operations.
It is also impossible to block on writing in normal conditions.
And if the conditions are not normal, e.g. a worker is unresponsive, then
we can safely think that the non-blocking behaviour as it is implemented
currently will not make things better, as it would lead to incomplete
reads/writes that are not handled anyhow and are totally broken from the
beginning.
1 year ago
Vsevolod Stakhov
5a13ff4644
[Rework] Use more predictable size for commands buffers
1 year ago
Vsevolod Stakhov
0eabbc4492
[Minor] Use seqpacket for control pipes
1 year ago
Vsevolod Stakhov
e28a3436d6
[Feature] Milter_headers: Add `x-rspamd-action` routine
Include it into `extended_spam_headers` as well
1 year ago
Vsevolod Stakhov
fffeb9ff37
[Rework] Convert multipattern to use hyperscan tools
1 year ago
Vsevolod Stakhov
fc3bfa4f62
[Project] Start C API implementation
1 year ago
Vsevolod Stakhov
ded2e51e60
[CritFix] Restore compatibility with the integrations and headers alterations
1 year ago
Vsevolod Stakhov
764a54dea9
[Minor] Do not sort part urls, it was added by a mistake
Discussed with: @citrin
1 year ago
Vsevolod Stakhov
075fa9fb2d
[Fix] Lua_tcp: Sigh, another try to fix `close` invocation
1 year ago
Vsevolod Stakhov
bd2f3f1c94
[Minor] Fix url_cmp operation
1 year ago
Vsevolod Stakhov
005c9fece0
[Minor] Remove vectorized hyperscan mode: it has been always broken
1 year ago
Vsevolod Stakhov
80c316e78b
[Fix] Mx_check: Cache the fact of a missing MX record
1 year ago
Vsevolod Stakhov
d16543a3b4
[Minor] Use __func__ in c++ mode as defined by standard
1 year ago
Vsevolod Stakhov
5335bce593
[Minor] Fix error copying/move behaviour
1 year ago
Vsevolod Stakhov
ff8d45abef
[Minor] Use a separate error class instead of std::string
1 year ago
Vsevolod Stakhov
14b52f4498
[Minor] Rename file to a more appropriate name
1 year ago
Vsevolod Stakhov
ff6390071d
[Rework] Store the current worker, so other libraries could use this information
1 year ago
Vsevolod Stakhov
de1cf75eec
[Minor] Move hyperscan tools to the libserver domain
1 year ago
Vsevolod Stakhov
49b60a3747
[Project] (Re)implement hyperscan caching
1 year ago
Vsevolod Stakhov
1426e3fe4c
[Minor] More tests and fixes to raii file
1 year ago
Vsevolod Stakhov
aaccef79b9
[Minor] Add some more utilities
1 year ago
Vsevolod Stakhov
2927c41aba
[Minor] Commit leftovers
1 year ago
Vsevolod Stakhov
e6dbedd690
[Rework] Split locked and unlocked files, as mmap does not need flock normally
1 year ago