Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
il y a 2 mois
Vsevolod Stakhov
75327b3889
[Project] Convert the remaining
il y a 3 mois
Vsevolod Stakhov
f5e3fbebb9
[Minor] Slightly improve logging
il y a 9 mois
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
il y a 10 mois
Vsevolod Stakhov
89252bcf03
[Fix] Fix crash with cname replies
il y a 1 an
Vsevolod Stakhov
d0c8549bc3
[Minor] Set ok flag on success
il y a 1 an
Vsevolod Stakhov
df2c48232b
[Minor] Check for NULL first for sanity
il y a 1 an
Vsevolod Stakhov
d6f8ba8d1e
[Minor] Use upstreams refcounts
il y a 1 an
Vsevolod Stakhov
dccf92aa82
[Feature] Allow lua_http module to accept upstreams
il y a 1 an
Vsevolod Stakhov
ca1b2e4c39
[Fix] Distinguish dynamic and static items
il y a 2 ans
Vsevolod Stakhov
22f603e83d
[Rework] Use dynamic items for calling callbacks
It is trivial to get a static item by dynamic item by just subtracting
pointers. So there is no need in other complications.
il y a 2 ans
Vsevolod Stakhov
9117058f15
[Minor] Allow to specify mempool when copying an IP address structure
il y a 2 ans
Vsevolod Stakhov
4f4aec0c82
[Minor] malloc -> g_malloc
il y a 2 ans
Vsevolod Stakhov
00927e0ef0
[Fix] Fix host header usage in lua_http
The issue is that `rspamd_http_message_get_http_host` actually returns
non zero-terminated string in the case where `Host` header is found in a
message. Hence, we *cannot* treat it as a zero terminated string.
The proper approach is to use `rspamd_ftok_t` everywhere for strings
but the change will be too intrusive, since it also involves many libraries,
e.g. `rdns` and others.
The current approach is much simplier: just copy a string into a temporary
buffer ensuring that it is zero terminated in all the cases.
Issue: #4051
il y a 2 ans
Vsevolod Stakhov
3deecad150
[Minor] Slightly improve session events logging
il y a 2 ans
Vsevolod Stakhov
caac14e056
[Minor] Use unified method to obtain http host
il y a 2 ans
Vsevolod Stakhov
05d6d354ec
[Feature] Allow to skip DNS resolution for keep-alive connections
il y a 2 ans
Vsevolod Stakhov
315b61b319
[Rework] Rework SSL flag operations
il y a 2 ans
Vsevolod Stakhov
077cee7733
[Minor] Fix more error paths in Lua
Found by: coverity scan
il y a 2 ans
Vsevolod Stakhov
19424515ec
[Minor] Fix some leaks on error paths
Found by: coverity scan
il y a 2 ans
Vsevolod Stakhov
4041c2d640
[Minor] Plug some leaks on error paths
Found by: coverity scan
il y a 2 ans
Vsevolod Stakhov
e4d4f49e87
[Fix] Fix brain-damaged behaviour when http request has a custom Host header
il y a 2 ans
Vsevolod Stakhov
41e28d1148
[Rework] Further project structure reorganisation
il y a 4 ans
Vsevolod Stakhov
87def67d97
[Rework] Stop using of uthash for http headers
il y a 4 ans
Vsevolod Stakhov
bd3b1b6d81
[Minor] Fix use after free
il y a 4 ans
Vsevolod Stakhov
a2af525bbd
[Fix] Check results of write message as SSL can bork them
il y a 4 ans
Vsevolod Stakhov
75f2a555c2
[Minor] Lua_http: Save log tag
il y a 4 ans
Vsevolod Stakhov
a35e93dc39
[Fix] Another try to fix slow callbacks and timers
il y a 4 ans
Vsevolod Stakhov
51c688ac27
[Minor] Update event loop timer in lua_http as it can cause troubles
il y a 4 ans
Vsevolod Stakhov
0d5f9d30bc
[Minor] Lua_http: Preallocate body when parsing tables
il y a 4 ans
Vsevolod Stakhov
04127efeba
[Fix] Distinguish remote and local addrs parsing
il y a 4 ans
Vsevolod Stakhov
4b75d23d06
[Project] Adopt Lua API
il y a 5 ans
Vsevolod Stakhov
98897c1797
[Project] First refactoring step libevent->libev
il y a 5 ans
Vsevolod Stakhov
6943c3c3a4
[Minor] Refactor DNS resolver invocations
il y a 5 ans
Vsevolod Stakhov
7ad1f167ea
[Minor] Slight logging improvements
il y a 5 ans
Vsevolod Stakhov
698bf6f96d
[Minor] Sigh, another try to fix coroutines errors
il y a 5 ans
Vsevolod Stakhov
7b57f65917
[Minor] Fix coroutine based error handling in lua http
il y a 5 ans
Vsevolod Stakhov
af6bea202a
[Fix] Add crash safety for HTTP async routines
il y a 5 ans
Vsevolod Stakhov
02de13af4e
[Minor] Simplify host element handling in HTTP message
il y a 5 ans
Vsevolod Stakhov
3a1974cf17
[Rework] Another iteration of HTTP interfaces rework
il y a 5 ans
Vsevolod Stakhov
f7aee39a9d
[Fix] Fix various issues found by PVS Studio
https://www.viva64.com/
il y a 5 ans
Vsevolod Stakhov
a3f9ececff
[Minor] Document keepalive attribute
il y a 5 ans
Vsevolod Stakhov
7aab225fab
[Project] Implement keep-alive support in lua_http
il y a 5 ans
Vsevolod Stakhov
d8833f06bd
[Project] HTTP: Rework HTTP connections API to simplify its usage
il y a 5 ans
Vsevolod Stakhov
b13907192f
[Project] Adopt lua libraries for http context
il y a 5 ans
Vsevolod Stakhov
c5f5cb3fd5
[Minor] Try to fix race condition in http connection
il y a 5 ans
Vsevolod Stakhov
4929e73f2b
[Project] Another rework for symbols cache
il y a 5 ans
Vsevolod Stakhov
856cb10dda
[Minor] Various fixes around async events
il y a 5 ans
Vsevolod Stakhov
0c20729f33
[Rework] Add more traces to async events, get rid of GQuarks
il y a 5 ans
Vsevolod Stakhov
565ff219ba
[Minor] Fix issues in lua http
il y a 5 ans