Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
2 月之前
Vsevolod Stakhov
6b2b416718
[Rework] Remove some of the GLib types in lieu of standard ones
This types have constant conflicts with the system ones especially on OSX.
2 月之前
Vsevolod Stakhov
9b78be4f03
[Feature] Support reply in message pack format
Rspamd currently sends reply in JSON format. However, message pack seems to
be a better choice for a compatible client. It is faster and does not need
escaping or even UTF8 validation. This is a surface for further updates.
2 月之前
Vsevolod Stakhov
0e1c723643
[Feature] Further optimization to the hot path
We check userdata very frequently, so the idea here is the following:
- Store the address of classname (converted to int) in the metatable at index 1
- When we need to check some udata, we can just compare the static address with
the integer stored in metatable
- This avoid quite an expensive `lua_rawequal` call for two tables as we know that
our classes are quite static
3 月之前
Vsevolod Stakhov
bcd36f7959
[Rework] Rework dynamic usage
3 月之前
Vsevolod Stakhov
900f364e36
[Rework] Use direct hashing instead of string hashing
3 月之前
Vsevolod Stakhov
75327b3889
[Project] Convert the remaining
3 月之前
Vsevolod Stakhov
122197f475
[Rework] Breaking: return back to semver
8 月之前
Vsevolod Stakhov
2b78f5350a
[Minor] Sort lua modules and use GPtrArray instead of GList
9 月之前
Vsevolod Stakhov
eb6f412f8f
[Minor] Allow rspamd_lua_require_function to work without function
9 月之前
Vsevolod Stakhov
9964353d37
[Minor] Allow to call function from stack in rspamd_lua_universal_pcall
10 月之前
Vsevolod Stakhov
bbd88232db
[Minor] Distinguish failures from unknown errors
10 月之前
Vsevolod Stakhov
b17a9e51c6
[Fix] Avoid race between config new/free by using a counter
10 月之前
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
10 月之前
Vsevolod Stakhov
95070f9594
[Fix] Fix an old issue with order of destruction race between redis pool and lua
1 年之前
Vsevolod Stakhov
6a7407939e
[Fix] Finally get rid of RSPAMD_USE_47BIT_LIGHTUSERDATA_HACK
1 年之前
Vsevolod Stakhov
e2e021a182
[Minor] Fix some minor code quality issue
Found by: coverity scan
2 年之前
Vsevolod Stakhov
b714690605
[Minor] Fix error path varargs handling
Found by: coverity
2 年之前
Vsevolod Stakhov
718238fd33
[Rework] Rework learn and add classify condition
2 年之前
Vsevolod Stakhov
6b80e5120a
[Minor] Add function to get a lua_reference from a string returning a function
2 年之前
Vsevolod Stakhov
656fc022c1
[Feature] Add zstd streaming API
3 年之前
Vsevolod Stakhov
d3bb11ac43
[Fix] Allow to set priorities between post init scripts
3 年之前
Vsevolod Stakhov
fa15fa29ca
[Rework] Move parsers to a separate lua library
3 年之前
Vsevolod Stakhov
68573e9940
[Minor] Allow direct userdata extraction from a table
3 年之前
Vsevolod Stakhov
09fc651620
[Minor] Allow to have __index in rspamd "classes"
3 年之前
Vsevolod Stakhov
568fd73ab8
[Project] Add a simple matrix Lua library
3 年之前
Vsevolod Stakhov
e3748d403b
[Minor] Allow rspamd_text to be passed
3 年之前
Vsevolod Stakhov
2a7ad79943
[Minor] Add lua_geti compat method
4 年之前
Vsevolod Stakhov
d4bd976fd9
[Rework] Rework urls extraction
4 年之前
Vsevolod Stakhov
5d7a33f313
[Minor] Add some missing types and docs to rspamd_lua_parse_table_arguments
4 年之前
Vsevolod Stakhov
422bf8b8f4
[Project] Add routine to call a generic lua function
4 年之前
Vsevolod Stakhov
c5836a23f9
[Minor] Add helper to alter metatables
4 年之前
Vsevolod Stakhov
b65f3234c4
[Minor] Fix strict config checks
4 年之前
Vsevolod Stakhov
00c9ae4c69
[Minor] Move function to the common routines
4 年之前
Vsevolod Stakhov
e734fc93a4
[Project] Start lua spf library
4 年之前
Vsevolod Stakhov
d055682d58
[Minor] Improve logging
4 年之前
Vsevolod Stakhov
074033b9aa
[Project] Various fixes for lua_content project
4 年之前
Vsevolod Stakhov
c0d2f5b0c3
[Minor] Try to fix CI error due to clang bug
4 年之前
Vsevolod Stakhov
9c571fcf67
[Minor] Fix modules loading logic
4 年之前
Vsevolod Stakhov
6e31344466
[Minor] Fix compile warnings
4 年之前
Vsevolod Stakhov
82637e8964
[Rework] Rework initialisation to reduce static leaks count
4 年之前
Vsevolod Stakhov
2cdad98690
[Minor] Fix khash set operation
4 年之前
Vsevolod Stakhov
cf14248f9c
[Minor] Lua core: Simplify class to string
4 年之前
Vsevolod Stakhov
5ef148649d
[Rework] Lua core: Use lightuserdata to index classes
4 年之前
Vsevolod Stakhov
3029890954
[Minor] Add lua bit library if not luajit
4 年之前
Vsevolod Stakhov
a2a3df8b76
[Minor] Fix parse_table_arguments
5 年之前
Vsevolod Stakhov
6bd388ae93
[Minor] Add flags for rspamd_lua_parse_table_arguments
5 年之前
Vsevolod Stakhov
a014c2274b
[Minor] Fix various cases in Lua API
5 年之前
Vsevolod Stakhov
d708a7a7e6
[Minor] Fix logging after switching to luaL_loadbuffer
5 年之前
Vsevolod Stakhov
99692da96e
[Minor] Print module digest and path when loading modules
5 年之前